Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed May 31, 2024
1 parent c25dce7 commit af8ae90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion care/facility/tests/test_file_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def setUpTestData(cls) -> None:
cls.district, cls.facility, local_body=cls.local_body
)
cls.consultation = cls.create_consultation(cls.patient, cls.facility)
cls.consent = cls.create_patient_consent(cls.consultation)
cls.consent = cls.create_patient_consent(cls.consultation, created_by=cls.user)

def test_consent_file_upload(self):
upload_response = self.client.post(
Expand Down
1 change: 1 addition & 0 deletions care/utils/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def create_patient_consent(
"consultation": consultation,
"type": ConsentType.PATIENT_CODE_STATUS,
"patient_code_status": PatientCodeStatusType.COMFORT_CARE,
"created_by": consultation.created_by,
}
data.update(kwargs)
return PatientConsent.objects.create(**data)
Expand Down

0 comments on commit af8ae90

Please sign in to comment.