Warning
This project is deprecated in favor of
syrupy
, which has a larger user base and more features.To migrate:
- Add the
syrupy
dependency and removepytest-cache-assert
- In your test, replace the fixture argument
assert_against_cache
withsnapshot
- Then replace
assert_against_cache(data)
withassert data == snapshot
- Remove the
tests/assert-cache
directorySee an example of a project that was migrated here: https://github.com/KyleKing/tail-jsonl/commit/c3b32e20ad88407555b445ba796adda3cfe200d1
If you run into any issue migrating or have questions, feel free to open an issue on GitHub: https://github.com/KyleKing/pytest_cache_assert/issues.
Cache assertion data to simplify regression testing of complex serializable data
Documentation can be found on Github (./docs), PyPi, or Hosted!