View Code? Open in Web Editor
NEW
A pytest plugin that automates vcrpy cassettes deletion on test failure.
Home Page: https://carlodepieri.github.io/pytest-vcr-delete-on-fail
License: GNU General Public License v3.0
pytest-vcr-delete-on-fail's People
Contributors
Stargazers
Watchers
pytest-vcr-delete-on-fail's Issues
Have the codebase compliant with mypy
would improve the project stability.
We need to:
- add type hinting everywhere is missing
- add mypy to the ci
All code trying to solve the 'delete the class setup fixture cassette' problem must be removed:
- it's an ugly, flimsy hack
- it's not compatible with pytest 7.x
This includes:
has_class_scoped_setup_failed
has_class_scoped_teardown_failed
- all relative tests and documentation
We will offer an alternative via #6.
A more general solution (than whole-test-decorators) for the general problem is needed:
- it could be used anywhere and select only portion of a test
- it could be useful in class setup / teardown fixtures
We need to refactor the test suite:
- tests-in-strings is a bad approach, difficult to debug
- it would be better to move those test to a separate library, inside actual files
- investigate the use of pytester.