Pin the batch form wording to what the form actually does
This commit is contained in:
parent
be2da9c6e4
commit
fa9295d15a
1 changed files with 12 additions and 0 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue