Skip to content

Commit

Permalink
chore: add test for default log level (#531)
Browse files Browse the repository at this point in the history
* chore: add test for default log level

Signed-off-by: Stephen Crowe <[email protected]>
  • Loading branch information
crowecawcaw authored Dec 10, 2024
1 parent 3bff9f4 commit 84e0192
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit/deadline_client/config/test_config_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit 84e0192

Please sign in to comment.