Skip to content

Commit bb93454

Browse files
authored
Fix inconsistent test (#308)
1 parent 78db425 commit bb93454

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

democrasite/webiscite/tests/test_templates.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def test_my_bills(self, status: Bill.Status, view: str, bill: Bill, client: Clie
130130
assert bill.name in content
131131
assert "Log in to vote" not in content
132132
assert "vote.js" in content
133-
assert (bill.get_status_display() in content) == (
134-
bill.status != Bill.Status.OPEN
135-
)
133+
if bill.status == Bill.Status.OPEN:
134+
assert bill.get_status_display() + "</p>" not in content
135+
else:
136+
assert bill.get_status_display() in content

0 commit comments

Comments
 (0)