test: Add fixture to prevent having disabled loggers

This commit is contained in:
Matthias
2025-03-15 08:30:32 +01:00
parent 415e361c66
commit 39288d2e53
3 changed files with 16 additions and 1 deletions
+1
View File
@@ -614,6 +614,7 @@ def test_cli_verbose_with_params(default_conf, mocker, caplog) -> None:
assert log_has("Verbosity set to 3", caplog)
@pytest.mark.usefixtures("keep_log_config_loggers")
def test_set_logfile(default_conf, mocker, tmp_path):
default_conf["ft_tests_force_logging"] = True
patched_configuration_load_config_file(mocker, default_conf)