I’m trying to debug a test failure on a Snapshot c...
# development
f
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
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
Thanks, that worked perfectly! Showed me that the TOML files hadn’t actually been changed, so now I can debug that 🙂