From 84e01929ee14b9a063348ef7c89caaad1c667b60 Mon Sep 17 00:00:00 2001 From: Stephen Crowe <6042774+crowecawcaw@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:46:55 -0800 Subject: [PATCH] chore: add test for default log level (#531) * chore: add test for default log level Signed-off-by: Stephen Crowe <6042774+crowecawcaw@users.noreply.github.com> --- test/unit/deadline_client/config/test_config_file.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/unit/deadline_client/config/test_config_file.py b/test/unit/deadline_client/config/test_config_file.py index b94eff16..5c0e4133 100644 --- a/test/unit/deadline_client/config/test_config_file.py +++ b/test/unit/deadline_client/config/test_config_file.py @@ -262,6 +262,13 @@ def test_str2bool(): config_file.str2bool("") +def test_default_log_level(): + # To avoid excessive logging, the log level should not be DEBUG by default. + assert config.get_setting("settings.log_level") != "DEBUG" + # Verify the default log level exists and is less verbose than DEBUG + assert config.get_setting("settings.log_level") == "WARNING" + + @pytest.mark.skipif( platform.system() != "Windows", reason="This test is for testing file permission changes in Windows.",