GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - KyleKing/pytest_cache_assert: Cache assertion data to simplify regression testing of complex serializable data

This repository was archived by the owner on Sep 19, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

266 Commits
266 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
pytest_cache_assert
pytest_cache_assert
 
 
scripts
scripts
 
 
tests
tests
 
 
.calcipy.json
.calcipy.json
 
 
.calcipy_packaging.lock
.calcipy_packaging.lock
 
 
.copier-answers.yml
.copier-answers.yml
 
 
.editorconfig
.editorconfig
 
 
.flake8
.flake8
 
 
.gitignore
.gitignore
 
 
.mypy.ini
.mypy.ini
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.pylintrc
.pylintrc
 
 
.ruff.toml
.ruff.toml
 
 
.tool-versions
.tool-versions
 
 
.yamllint.yaml
.yamllint.yaml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
mkdocs.yml
mkdocs.yml
 
 
noxfile.py
noxfile.py
 
 
poetry.lock
poetry.lock
 
 
pyproject.toml
pyproject.toml
 
 
run
run
 
 

Repository files navigation

pytest_cache_assert

Warning

This project is deprecated in favor of syrupy, which has a larger user base and more features.

To migrate:

  1. Add the syrupy dependency and remove pytest-cache-assert
  2. In your test, replace the fixture argument assert_against_cache with snapshot
    1. Then replace assert_against_cache(data) with assert data == snapshot
  3. Remove the tests/assert-cache directory

See 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!

About

Cache assertion data to simplify regression testing of complex serializable data

pytest_cache_assert.kyleking.me/

Topics

calcipypytest-plugin

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.