Closed ubalklen closed 2 years ago
I have many tests and I want almost all of them to be recorded. Is there a way to record all of them by default without the need of adding a decorator to each one?
you could use a module-level pytestmark or use hooks to mark tests dynamically.
pytestmark
# in your test file pytestmark = [pytest.mark.vcr]
See more in Pytest docs
That will do. Thanks!
I have many tests and I want almost all of them to be recorded. Is there a way to record all of them by default without the need of adding a decorator to each one?