Skip to content

Commit

Permalink
Merge pull request #80 from cisagov/improvement/improve-test
Browse files Browse the repository at this point in the history
Verify that the logging level for the root logger is set correctly
  • Loading branch information
mcdonnnj authored Jul 22, 2021
2 parents 720ecdc + 9706b8b commit 422f11e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def test_log_levels(level):
assert (
logging.root.hasHandlers() is True
), "root logger should now have a handler"
assert (
logging.getLevelName(logging.root.getEffectiveLevel()) == level.upper()
), f"root logger level should be set to {level.upper()}"
assert return_code == 0, "main() should return success (0)"


Expand Down

0 comments on commit 422f11e

Please sign in to comment.