We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following config seems not working under tests/__init__.py, but works within tests/test_foo.py, tests/test_bar.py...
tests/__init__.py
tests/test_foo.py
tests/test_bar.py
import pytest @pytest.fixture(scope='module', autouse=True) def vcr_config(): return {'ignore_hosts': ['oauth2.googleapis.com']}
The text was updated successfully, but these errors were encountered:
It should be in conftest.py, pytest collects fixtures from conftest.py files (in most common cases)
conftest.py
pytest
Sorry, something went wrong.
Hopefully, the problem is resolved now. We can add some clarification to our Configuration section as a part of #49.
Configuration
Feel free to reopen this issue in case of any further questions
No branches or pull requests
The following config seems not working under
tests/__init__.py
, but works withintests/test_foo.py
,tests/test_bar.py
...The text was updated successfully, but these errors were encountered: