-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issue with "ContainsTheEntry" resolution in version 4.2.0 #83
Comments
Er, how embarrassing—either we missed that one in the deprecation of Thanks for the issue! I'll get a 4.2.1 release readied up as fast as i can. |
Yikes. I missed this too. |
* #83: remove BaseResolution inheritance. * add describe tests for Resolutions. * remove deprecation test after method was removed. * add a missing l (h/t @langgaibo).
@jardilac91 we've published 4.2.1 with this bugfix! Can you confirm that the issue has been fixed? |
Hi @perrygoy the issue was solved, but I have a new problem with this version, in the version 4.1.2 I use this in order to search a key/value in a nested dictionary:
In this version I have to use:
but in this version the assert fails, because it searches that the key user_info contains all the values that the service returns, but I need to validate only some key/values. Can you help me with this? |
Aah, interesting. That would be because in the old way, the That is a really cool use-case, and we might be able to get it back by having some Resolutions check to see if they were given a # cool custom Question, by the way!
body = DecryptedBodyOfTheLastResponse().answered_by(the_actor)
the_actor.should(
See.the(
body["user_info"],
ContainsTheEntries( # there is this alias for multi-entry tests, if you want to use it
{
"some_key" : some_value,
"some_key" : some_value,
"some_key" : some_value,
}
)
),
) Unfortunately, this will slightly change the output of the log, but hopefully it will still be easy to understand. |
I opened #85 to look into whether we can re-enable that really cool functionality! |
Hi @perrygoy thanks, this workaround works great! |
Thanks for the responses, @jardilac91, and thanks for opening this issue! I'll close this one and track the effort to bring back that old functionality in the other one. |
Hi, i have this issue with the "ContainsTheEntry" resolution:
This happens with screenpy version 4.2.0 in the version 4.1.2 it works fine.
The text was updated successfully, but these errors were encountered: