You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This looks pretty cool. It seems programmatically a big lift to add to the library. Any ideas how to do this without deep modifications? Possibly need an option for minimal "location" metadata to the existing messages and then this pretty print would be a separate function abstracted from the core code. It would need a ton of test cases, since this could get buggy. Need to think about how to handle really large JSON messages with just a few errors.
I'll leave this open in case people have some ideas.
It might be just me, but would you consider a different output for failed tests?
Of course, having the
expectedStr
makes this error somewhat more readable.However, even in this case, an output like the one I'm proposing will be better in my opinion (you will be able to see what values were received).
My proposal is tl;dr JSON is pretty printed, sorted, and diffed:
pytest-dev/pytest#11571
The text was updated successfully, but these errors were encountered: