-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(matchers): Don't sort failed matches when printing error message #711
Conversation
@markstory I think we introduced should we just drop it completely and just present JSON? |
@mgaligniana please add changelog file entry |
@beliaev-maksim thank you for your fast response! On it! 🧑🏭 |
@beliaev-maksim Done! Let me know if message is OK (I'm not English native speaker). Feel free to suggest changes! Thank you! |
I think you're right on the origin of that method. We could likely drop it now that we're not supporting python 2 anymore. |
@markstory Do you want me to tackle in this pull request? Or in another ticket? |
@mgaligniana yes please |
Using this pull request would be simpler for us. |
7beb706
to
a6ef69d
Compare
Done! I had to update all test cases because now the output is not transformed to a whole string: For example in |
CHANGES
Outdated
* Fixed error messages when matches fail. See #704 | ||
* Delete `_create_key_val_str` which was introduced for the compatibility between python2 (not supported anymore) and python3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not talk about internal method. Instead, please briefly describe what changed for the end user
Makes sense! Ready! Thanks for your help and patience. |
looks good, thanks |
There are a few failing tests that will need to be addressed before this could be merged. |
Will star working on that! I'm going to use |
Delete `_create_key_val_str` which was introduced for the compatibility between python2 (not supported anymore) and python3. Fixes getsentryGH-704
Now it is! I missed a f-string and probably forgot run tests before push 🤷, sorry! |
@markstory sorry for the direct ping! But could you re-run the tests? Thank you! |
Thank you 🎉 |
Hi!
This PR removes the
_create_key_val_str
and with it the sorting when displaying matchers errorsLet me know any change required!
Thank you
Fixes GH-704