From 0c55f5814c24ac3d03428b5b5db6538096329a48 Mon Sep 17 00:00:00 2001 From: Michelle Tran Date: Wed, 30 Oct 2024 10:26:35 -0400 Subject: [PATCH] Only show VCR logs on errors These logs were getting really noisy when testing locally. Removing unnecessary logs should make it more manageable to debug. If someone wants the full log, they can override the log levels. --- conftest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conftest.py b/conftest.py index 84a177d8c..ceb6e9f3d 100644 --- a/conftest.py +++ b/conftest.py @@ -1,3 +1,4 @@ +import logging import os from pathlib import Path @@ -163,6 +164,9 @@ def empty_configuration(mocker): @pytest.fixture def codecov_vcr(request): + vcr_log = logging.getLogger("vcr") + vcr_log.setLevel(logging.ERROR) + current_path = Path(request.node.fspath) current_path_name = current_path.name.replace(".py", "") cassete_path = current_path.parent / "cassetes" / current_path_name