You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I need to be able to turn on and off vcr via a fixture. Currently I have a fixture that changes the fqdn of the test calls based on the environment. I want to run vcr on certain calls, but not others. I can change the record_mode based on the fixture by including it in vcr_config, but disabling it via none causes it to raise errors, which I don't want.
Describe the solution you'd like
Some fixture that I can use to disable vcr entirely. Maybe an update to vcr_config that adds a key which pytest-recording inspects before passing it on to vcr, like:
I am interested in this feature as well (I was hoping that not recording the fixture is the default behavior). I am testing a REST client, which does some authentication steps that I would rather not record.
If you could tell me if there is a way to use pytest-recording for such use case, I'd be happy. My current idea is to fall back to vcr context manager.
Is your feature request related to a problem? Please describe.
I need to be able to turn on and off
vcr
via a fixture. Currently I have a fixture that changes thefqdn
of the test calls based on the environment. I want to runvcr
on certain calls, but not others. I can change therecord_mode
based on the fixture by including it invcr_config
, but disabling it vianone
causes it to raise errors, which I don't want.Describe the solution you'd like
Some fixture that I can use to disable
vcr
entirely. Maybe an update tovcr_config
that adds a key whichpytest-recording
inspects before passing it on tovcr
, like:The text was updated successfully, but these errors were encountered: