Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dhakim87 committed May 15, 2020
1 parent f7828d8 commit 4fbf7c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion microsetta_private_api/admin/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def test_get_survey(self):
# And the meta survey should exist somewhere in all_meta
found = False
for survey in all_meta['survey_answers']:
if "DIET_TYPE" in survey:
if "1" in survey["response"] and \
survey["response"]["1"][0] == 'DIET_TYPE':
found = True
self.assertDictEqual(meta['survey_answers'][0],
survey)
Expand Down

0 comments on commit 4fbf7c0

Please sign in to comment.