Convert OrderedDicts to dicts to make diff more understandable#13
Convert OrderedDicts to dicts to make diff more understandable#13Alexander3 wants to merge 2 commits intohjwp:mainfrom
Conversation
|
I'm not sure this is the responsibility of this library. If want to compare output |
|
Yes, but using helper in over 1000 tests makes them less readable, and also slower, because it would convert OrderedDicts even when they are equal. I tried to override |
|
this sounds interesting. i'd be pretty happy to just yolo-convert the ordereddict to normaldicts and then show the diff? maybe add a message to say that's what we did... |
cbacb25 to
621b15e
Compare
Some libs like
graphenein my case return OrderedDicts istead of normal dicts.I have assert like this:
And it's hard to spot the difference in test results


Pycharm has even "See difference option":
I will write some tests when I'll have more time, for now please tell me what you think about this idea.