fix: disable file logging during tests
This commit is contained in:
parent
2efc09d587
commit
4319be36f6
1 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue