Skip to content

Commit

Permalink
Update tests to new changes introduced to 62cb3d2
Browse files Browse the repository at this point in the history
  • Loading branch information
foursixnine committed Feb 1, 2024
1 parent 75ce0fa commit 11a86ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_incident.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,18 @@ def test_inc_has_failures(caplog, mock_good, monkeypatch):
# Assert that the method returns True since there is a failed job
assert has_failures

assert caplog.records[0].message == "Found 1 failed jobs for incident 24618:"
assert caplog.records[0].message == "Found 2 failed jobs for incident 24618:"
assert (
caplog.records[1].message
== "Job 2042 is not marked as acceptable for incident 24618"
== "Job 2020 is not marked as acceptable for incident 24618"
)
assert len(caplog.records) == 2
assert len(caplog.records) == 3

caplog.set_level(logging.INFO)
caplog.clear()

inc.has_failures("token")

# Check that the log only has one message, and that it matches our incident
assert caplog.records[0].message == "Found 1 failed jobs for incident 24618:"
assert caplog.records[0].message == "Found 2 failed jobs for incident 24618:"
assert len(caplog.records) == 1

0 comments on commit 11a86ae

Please sign in to comment.