Skip to content

Commit

Permalink
update allocation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Aug 18, 2023
1 parent 2b13e3b commit 2b881b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coldfront/core/allocation/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_allocationform_offerlettercode_multiplefield_invalid(self):
form = AllocationForm(
data=self.post_data, request_user=self.pi_user, project_pk=self.project.pk
)
self.assertEqual(form.errors['expense_code'], ["you must select exactly one from hsph, seas, or manual entry"])
self.assertIn("you must do exactly one of the following", form.errors['expense_code'][0])


class AllocationUpdateFormTest(AllocationFormBaseTest):
Expand Down
2 changes: 1 addition & 1 deletion coldfront/core/allocation/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def test_allocationcreateview_post_offerlettercode_multiplefield_invalid(self):
"""Ensure that form won't pass if multiple expense codes are given"""
self.post_data['hsph_code'] = '000-000-000-000-000-000-000-000-000-000-000'
response = self.client.post(self.url, data=self.post_data, follow=True)
self.assertContains(response, "you must select exactly one from hsph, seas, or manual entry")
self.assertContains(response, "you must do exactly one of the following")


def test_allocationcreateview_post_hsph_offerlettercode(self):
Expand Down

0 comments on commit 2b881b6

Please sign in to comment.