-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verify_response_with not working on mqtt_response #863
Comments
Seems to be related with "check_ext_functions" call on response.py;
As multiple mqtt_response checks were implemented response_block turned into a json array containing each one of the response checks:
So simple calling
will always return "None" as its necessary to first get "mqtt_responses" to get the response checks array, then get the element from the array, then get "verify_response_with";
For sure, not getting first element in a hardcoded way, but iterating over the array to get every "verify_response_with" block:
|
Release in 2.6.0 |
Hello.
When calling an external function using "verify_response_with" simply nothing happens (with Tavern 2.0.7), but this was working perfectly with Tavern 1.25.2:
File "log.txt" is created when using Tavern 1.25.2 but nothing happens when using 2.0.7 nor 2.0.6.
At the same time, even if I try to refer to a non-existing function, the test simply passes, but with version 1.25.2 this was being checked in runtime:
AttributeError: module 'testing_utils' has no attribute 'verifyNOTSetup'. Did you mean: 'verifySetup'?
Is that a bug or something changed in most recent versions?
Thank you.
The text was updated successfully, but these errors were encountered: