Pin the batch form wording to what the form actually does

This commit is contained in:
ixgadmin 2026-09-17 14:50:07 +00:00
parent be2da9c6e4
commit fa9295d15a

View file

@ -418,6 +418,18 @@ class BatchCreateTests(BatchTestCase):
)
self.assertTrue(self.errors_for(r, "origin_facility"))
def test_the_origin_facility_help_text_matches_what_the_form_does(self):
r = self.client_ops.get("/ops/batches/new/")
# An existing unregistered value is kept, so the help must not claim the
# batch and the register cannot disagree.
self.assertContains(r, "keeps its own value")
self.assertNotContains(r, "cannot disagree")
def test_the_status_card_says_which_qc_statuses_are_offered(self):
r = self.client_ops.get("/ops/batches/new/")
self.assertContains(r, "never offered here")
self.assertContains(r, "appears only as the current value")
class BatchStatusRuleTests(BatchTestCase):
"""The rule that makes the screen worth having."""