Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyleking/pytest_cache_assert
Cache assertion data to simplify regression testing of complex serializable data
https://github.com/kyleking/pytest_cache_assert
calcipy pytest-plugin
Last synced: about 2 months ago
JSON representation
Cache assertion data to simplify regression testing of complex serializable data
- Host: GitHub
- URL: https://github.com/kyleking/pytest_cache_assert
- Owner: KyleKing
- License: mit
- Archived: true
- Created: 2021-10-29T11:55:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T23:23:43.000Z (over 1 year ago)
- Last Synced: 2024-11-04T05:35:34.598Z (2 months ago)
- Topics: calcipy, pytest-plugin
- Language: Python
- Homepage: https://pytest_cache_assert.kyleking.me/
- Size: 4.19 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-python-testing - pytest_cache_assert - Cache assertion data to simplify regression testing of complex serializable data. (Assertions)
README
# pytest_cache_assert
> **Warning**
>
> This project is deprecated in favor of [`syrupy`](https://github.com/tophat/syrupy), which has a larger user base and more features.
>
> To migrate:
>
> 1. Add the `syrupy` dependency and remove `pytest-cache-assert`
> 1. In your test, replace the fixture argument `assert_against_cache` with `snapshot`
> 1. Then replace `assert_against_cache(data)` with `assert data == snapshot`
> 1. Remove the `tests/assert-cache` directory
>
> See an example of a project that was migrated here:
>
> If you run into any issue migrating or have questions, feel free to open an issue on GitHub: .Cache assertion data to simplify regression testing of complex serializable data
Documentation can be found on [Github (./docs)](./docs), [PyPi](https://pypi.org/project/pytest_cache_assert/), or [Hosted](https://pytest_cache_assert.kyleking.me/)!