Skip to content

Commit

Permalink
updated unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
umar8hassan committed Jul 22, 2024
1 parent 6bdfbcb commit eda040e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion external_resources/tasks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def test_check_external_resources( # noqa: PLR0913
assert updated_state.external_url_response_code == url_status_code
assert updated_state.backup_url_response_code == backup_url_status_code

assert updated_state.content.metadata.get("is_broken", False) is url_status
assert updated_state.content.metadata.get("is_broken", False) == (
url_status and (backup_url_status_code is None or backup_url_status)
)


@pytest.mark.django_db()
Expand Down

0 comments on commit eda040e

Please sign in to comment.