Skip to content

Commit e0f74be

Browse files
Merge pull request #596 from biocore/csymons_skin_surveys
Skin Surveys
2 parents 61d7e1b + 12df590 commit e0f74be

File tree

6 files changed

+2047
-31
lines changed

6 files changed

+2047
-31
lines changed

microsetta_private_api/api/_survey.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,14 @@ def read_survey_templates(account_id, source_id, language_tag, token_info):
5454
SurveyTemplateRepo.ALLERGIES_ID,
5555
SurveyTemplateRepo.DIET_ID,
5656
SurveyTemplateRepo.DETAILED_DIET_ID,
57+
SurveyTemplateRepo.SKIN_ID,
58+
SurveyTemplateRepo.SKIN_HEALTH_DIAGNOSIS_ID,
5759
SurveyTemplateRepo.OTHER_ID
5860
]
5961
if template_repo.check_display_skin_scoring_app(
6062
account_id, source_id
6163
):
6264
template_ids.append(SurveyTemplateRepo.SKIN_SCORING_APP_ID)
63-
6465
elif source.source_type == Source.SOURCE_TYPE_ANIMAL:
6566
template_ids = [2]
6667
else:

microsetta_private_api/api/tests/test_integration.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@ def test_surveys(self):
419419
SurveyTemplateRepo.ALLERGIES_ID,
420420
SurveyTemplateRepo.DIET_ID,
421421
SurveyTemplateRepo.DETAILED_DIET_ID,
422+
SurveyTemplateRepo.SKIN_ID,
423+
SurveyTemplateRepo.SKIN_HEALTH_DIAGNOSIS_ID,
422424
SurveyTemplateRepo.OTHER_ID])
423425
self.assertListEqual([x["survey_template_id"] for x in doggy_surveys],
424426
[2])
@@ -702,9 +704,9 @@ def test_bobo_takes_all_local_surveys(self):
702704
SurveyTemplateRepo.ALLERGIES_ID,
703705
SurveyTemplateRepo.DIET_ID,
704706
SurveyTemplateRepo.DETAILED_DIET_ID,
705-
SurveyTemplateRepo.MIGRAINE_ID,
706-
SurveyTemplateRepo.SURFERS_ID,
707-
SurveyTemplateRepo.COVID19_ID):
707+
SurveyTemplateRepo.SKIN_ID,
708+
SurveyTemplateRepo.SKIN_HEALTH_DIAGNOSIS_ID,
709+
SurveyTemplateRepo.OTHER_ID):
708710
continue
709711

710712
resp = self.client.get(

0 commit comments

Comments
 (0)