From 9b9fc62fda0bc31b6c0f51433db1996a1c558bdf Mon Sep 17 00:00:00 2001 From: Matthew Foster Walsh <15671892+mfosterw@users.noreply.github.com> Date: Tue, 3 Mar 2026 18:39:41 -0700 Subject: [PATCH] Fix inconsistent test --- democrasite/webiscite/tests/test_templates.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/democrasite/webiscite/tests/test_templates.py b/democrasite/webiscite/tests/test_templates.py index 3b83910..bc27402 100644 --- a/democrasite/webiscite/tests/test_templates.py +++ b/democrasite/webiscite/tests/test_templates.py @@ -130,6 +130,7 @@ def test_my_bills(self, status: Bill.Status, view: str, bill: Bill, client: Clie assert bill.name in content assert "Log in to vote" not in content assert "vote.js" in content - assert (bill.get_status_display() in content) == ( - bill.status != Bill.Status.OPEN - ) + if bill.status == Bill.Status.OPEN: + assert bill.get_status_display() + "

" not in content + else: + assert bill.get_status_display() in content