This commit is contained in:
Marco H 2022-04-06 07:27:38 +02:00 committed by Christopher Charbonneau Wells
parent 3eba917b08
commit 123a0192ce
1 changed files with 0 additions and 5 deletions

View File

@ -256,11 +256,6 @@ class DiaperChangeFormsTestCase(FormsTestCaseBase):
"color": "black",
"amount": 0.45,
}
page = self.c.post("/changes/add/", params)
self.assertEqual(page.status_code, 200)
self.assertFormError(page, "form", None, "Wet and/or solid is required.")
params.update({"wet": 1, "solid": 1, "color": "black"})
page = self.c.post("/changes/add/", params, follow=True)
self.assertEqual(page.status_code, 200)
self.assertContains(page, "Diaper Change entry for {} added".format(str(child)))