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

future-oxygen-10553

05/04/2023, 4:43 PM
I’m trying to debug a test failure on a Snapshot comparison (code is here). Do you all have any tips on debugging what’s going on with the Snapshot? The pytest diff output just shows me that the hashes are different, not what the differences actually are.
b

bitter-ability-32190

05/04/2023, 4:51 PM
So; 1. In your
rule_runner
fixture, add a
QueryRule(DigestContents, [Digest])
(I think) 2. Then in your test do
contents = rule_runner.request(DigestContents, [snapshot.digest])
f

future-oxygen-10553

05/04/2023, 9:45 PM
Thanks, that worked perfectly! Showed me that the TOML files hadn’t actually been changed, so now I can debug that 🙂