https://pantsbuild.org/ logo
#development
Title
# development
b

bored-art-40741

04/11/2021, 8:33 PM
Any idea why pytest doesn't report diffs at the attribute level when asserting that two
dataclass
instances are equal? It looks like it's supported this for a long while, well before the version we're using
h

hundreds-father-404

04/11/2021, 9:00 PM
Yeah probably the plugin in pants.toml, which overrides the diff comparison
b

bored-art-40741

04/11/2021, 9:19 PM
pytest-icdiff
?
h

hundreds-father-404

04/11/2021, 9:19 PM
Yes
b

bored-art-40741

04/11/2021, 9:23 PM
Yup, that does it
Interestingly, the dataclass diffing wasn't as nice as I'd hoped, and I'm not sure why