Test with custom parameters
Opened this issue · 4 comments
lcofre commented
Hi!
I was wondering if is there a way to specify values for parameters in path, query or body, for each of the expected responses in the swagger file.
Thanks in advance for your help!
cyprieng commented
Currently swagger tester only test that returned data match the definition in the swagger spec, and send request using example data. So that's not possible for now, but could be a nice improvement 👍
lcofre commented
Hi @flavianh !
I was thinking on providing a dict similar to the one for authorize_error:
params = {
'post': {
'/pet': {'200': {'name': 'saoirse', 'age': 5}}
}
}
Thanks for your interest!
flavianh commented
@cyprien-g Is there a quick way to do it?