Open strawgate opened 3 weeks ago
Implement Pytest Snapshot functionality and convert most (if not all) document reference comparisons to just using snapshots
If we plan to eventually contribute this upstream to Home Assistant, then we should follow their guidance for snapshot testing first-party components. More specifically, we need to use the same library that they do:
Snapshot testing in Home Assistant is built on top of Syrupy, their documentation can thus be applied when writing Home Assistant tests.
We should investigate and outline a plan to refactor tests to:
I'll use this document to track progress