Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Dec 4, 2024
1 parent 00360be commit a1c7c6a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ def test_run_task_runs_task_and_creates_task_run_object_when_failure(

assert len(caplog.records) == 3

warning_log = caplog.records[0]
assert warning_log.levelname == "WARNING"
assert warning_log.message == (
[log_record] = caplog.records
assert log_record.levelname == "ERROR"
assert log_record.message == (
f"Failed to execute task '{task.task_identifier}'. Exception was: {msg}"
)

Expand Down

0 comments on commit a1c7c6a

Please sign in to comment.