From 4319be36f63ddabeba8301af4a3e4668838f3bff Mon Sep 17 00:00:00 2001 From: arabcoders Date: Mon, 8 Jun 2026 08:44:25 +0300 Subject: [PATCH] fix: disable file logging during tests --- app/conftest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/conftest.py b/app/conftest.py index e75a390b..5a976bac 100644 --- a/app/conftest.py +++ b/app/conftest.py @@ -16,7 +16,10 @@ def pytest_configure(config) -> None: if getattr(config.option, "basetemp", None) is None: config.option.basetemp = str(get_test_run_root() / "pytest") + os.environ["YTP_FILE_LOGGING"] = "false" + def pytest_unconfigure(config) -> None: del config + os.environ.pop("YTP_FILE_LOGGING", None) cleanup_test_run_root()