kiwicom / pytest-recording

A pytest plugin that allows recording network interactions via VCR.py
MIT License
425 stars 34 forks source link

Is there a no decorator mode? #86

Closed ubalklen closed 2 years ago

ubalklen commented 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?

Stranger6667 commented 2 years ago

you could use a module-level pytestmark or use hooks to mark tests dynamically.

# in your test file
pytestmark = [pytest.mark.vcr]

See more in Pytest docs

ubalklen commented 2 years ago

That will do. Thanks!