Skip to content

Commit 61d611f

Browse files
committed
logging
1 parent 3d469a5 commit 61d611f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template/tests/unit/conftest.py.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ logger = logging.getLogger(__name__)
1111
def pytest_configure(
1212
config: pytest.Config, # noqa: ARG001 # the config argument MUST be present (even when unused) or pytest throws an error
1313
):
14+
"""Configuration for pytest itself, such as logging levels."""{% endraw %}{% if configure_vcrpy %}{% raw %}
1415
# force the vcr.cassette logger to WARNING+ because otherwise the logs get super noisy with the playback of all the cassettes
1516
vcr_logger = logging.getLogger("vcr.cassette")
16-
vcr_logger.setLevel(logging.WARNING){% endraw %}
17+
vcr_logger.setLevel(logging.WARNING){% endraw %}{% endif %}{% raw %}{% endraw %}

0 commit comments

Comments
 (0)