File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,11 @@ import pytest
77from .vcrpy_fixtures import pytest_recording_configure # noqa: F401 # this is configuration we need in conftest scope
88from .vcrpy_fixtures import vcr_config # noqa: F401 # this is an autouse fixture{% endraw %}{% endif %}{% raw %}
99
10- logger = logging.getLogger(__name__){% endraw %}
10+ logger = logging.getLogger(__name__)
11+
12+ def pytest_configure(
13+ config: pytest.Config, # noqa: ARG001 # the config argument MUST be present (even when unused) or pytest throws an error
14+ ):
15+ # force the vcr.cassette logger to WARNING+ because otherwise the logs get super noisy with the playback of all the cassettes
16+ vcr_logger = logging.getLogger("vcr.cassette")
17+ vcr_logger.setLevel(logging.WARNING){% endraw %}
You can’t perform that action at this time.
0 commit comments