fix: disable file logging during tests

This commit is contained in:
arabcoders 2026-06-08 08:44:25 +03:00
parent 2efc09d587
commit 4319be36f6

View file

@ -16,7 +16,10 @@ def pytest_configure(config) -> None:
if getattr(config.option, "basetemp", None) is None: if getattr(config.option, "basetemp", None) is None:
config.option.basetemp = str(get_test_run_root() / "pytest") config.option.basetemp = str(get_test_run_root() / "pytest")
os.environ["YTP_FILE_LOGGING"] = "false"
def pytest_unconfigure(config) -> None: def pytest_unconfigure(config) -> None:
del config del config
os.environ.pop("YTP_FILE_LOGGING", None)
cleanup_test_run_root() cleanup_test_run_root()