Skip to content

Commit

Permalink
[#24] Update form seeder test to align w/ school
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed Apr 10, 2023
1 parent 85e993e commit 32eb927
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/api/v1/v1_forms/tests/tests_form_seeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ def test_call_command(self):
"WASH in Schools",
"Water System",
"Household questionnaire",
"Health facility questionnaire"
"Health facility questionnaire",
"School questionnaire",
]

# RUN SEED NEW FORM
output = self.call_command()
output = list(filter(lambda x: len(x), output.split("\n")))
forms = Forms.objects.all()
self.assertEqual(forms.count(), 9)
self.assertEqual(forms.count(), 10)
for form in forms:
self.assertIn(f"Form Created | {form.name} V{form.version}",
output)
Expand Down

0 comments on commit 32eb927

Please sign in to comment.