-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow using pytest-recording
with a command-line flag only
#109
Labels
Comments
Hi! Yep, it could be a new CLI option that would work inside this condition This feature should be relatively straightforward to implement, I don't have the capacity to work on it myself but I will assist with reviews. I see the following steps:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems like right now you need to define which functions will make use of
vcr
with a decorator. It would be great if there was a way to automatically enablevcr
for all tests without requiring any change in the source code.For example, having a flag like
pytest --vcr
would automatically enable VCR for all requests.This way, tests would run in any environment without
vcr
norpytest-recording
installed (i.e.: CI/CD/deployment) and, for those wanting to accelerate local testing, it would be as simple as installing the packages and adding the--vcr
flag.Not sure this is even possible. 🤷 😄
The text was updated successfully, but these errors were encountered: