Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd committed Jan 18, 2021
1 parent d46e417 commit 40b18db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readthedocs/rtd_tests/tests/test_automation_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def test_matches_history(self, trigger_build):
version_type=TAG,
)

assert rule.run(version) is True
assert rule.run(version) == (True, None)
assert rule.matches.all().count() == 1

match = rule.matches.first()
Expand All @@ -350,7 +350,7 @@ def test_matches_history(self, trigger_build):
for i in range(1, 31):
version.verbose_name = f'test {i}'
version.save()
assert rule.run(version) is True
assert rule.run(version) == (True, None)

assert rule.matches.all().count() == 15

Expand Down

0 comments on commit 40b18db

Please sign in to comment.