Skip to content

Commit

Permalink
test: Relax expectation (presumably even the Docker image can fail re…
Browse files Browse the repository at this point in the history
…quests) (x3)
  • Loading branch information
jpmckinney committed Aug 15, 2023
1 parent 793eb4b commit 21c0108
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/dataset/misc/test_url_availability.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def test_failed_multiple():

result = url_availability.get_result(scope)
assert result["result"] is False
assert result["value"] >= 95
assert len(result["meta"]["passed_examples"]) >= 95
assert len(result["meta"]["failed_examples"]) <= 5
assert sum(1 for example in result["meta"]["passed_examples"] if example["status"] == "OK") >= 95
assert sum(1 for example in result["meta"]["failed_examples"] if example["status"] != "OK") <= 5
assert result["value"] >= 90
assert len(result["meta"]["passed_examples"]) >= 90
assert len(result["meta"]["failed_examples"]) <= 10
assert sum(1 for example in result["meta"]["passed_examples"] if example["status"] == "OK") >= 90
assert sum(1 for example in result["meta"]["failed_examples"] if example["status"] != "OK") <= 10

0 comments on commit 21c0108

Please sign in to comment.