Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
IbraAoad committed Mar 7, 2024
1 parent 9c29df6 commit 602eebb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_alerter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ def test_config_default_empty_file(fake_fs):
config.reload()
assert config["watch"]["down_interval"] == 300


def test_file_not_found_error(fake_fs):

with unittest.mock.patch("cos_alerter.logger.critical") as mock_critical, \
unittest.mock.patch("sys.exit") as mock_exit:
with unittest.mock.patch("cos_alerter.logger.critical") as mock_critical, unittest.mock.patch(
"sys.exit"
) as mock_exit:

try:
config.reload()
Expand All @@ -42,6 +44,7 @@ def test_file_not_found_error(fake_fs):
else:
assert False


def test_duplicate_key_error(fake_fs):
duplicate_config = """
watch:
Expand Down

0 comments on commit 602eebb

Please sign in to comment.