Skip to content

Commit

Permalink
Fixed Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jul 6, 2020
1 parent 367ae33 commit a2672d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions care/facility/tests/test_patient_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def get_list_representation(self, patient=None):
"date_of_birth": mock_equal,
"gender": patient.gender,
"is_medical_worker": patient.is_medical_worker,
"is_antenatal": patient.is_antenatal,
"phone_number": patient.phone_number,
"address": patient.address,
"pincode": patient.pincode,
Expand Down Expand Up @@ -126,6 +127,7 @@ def get_detail_representation(self, patient: Any):
"passport_no": patient.passport_no,
# "aadhar_no": patient.aadhar_no,
"is_medical_worker": patient.is_medical_worker,
"is_antenatal": patient.is_antenatal,
"blood_group": patient.blood_group,
"allergies": patient.allergies,
"allow_transfer": patient.allow_transfer,
Expand Down
1 change: 1 addition & 0 deletions care/facility/tests/test_patient_consultation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def get_list_representation(self, obj) -> dict:
"admitted_to": obj.admitted_to,
"admission_date": obj.admission_date,
"discharge_date": obj.discharge_date,
"consultation_notes": obj.consultation_notes,
"created_date": obj.created_date,
"modified_date": obj.modified_date,
"bed_number": obj.bed_number,
Expand Down
2 changes: 2 additions & 0 deletions care/utils/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def get_patient_data(cls, district=None, state=None):
"date_of_birth": datetime.date(1992, 4, 1),
"gender": 2,
"is_medical_worker": True,
"is_antenatal": False,
"allergies": "",
"allow_transfer": True,
"blood_group": "O+",
Expand Down Expand Up @@ -368,6 +369,7 @@ def get_consultation_data(cls):
"admitted_to": None,
"admission_date": None,
"discharge_date": None,
"consultation_notes": "",
"created_date": mock_equal,
"modified_date": mock_equal,
}
Expand Down

0 comments on commit a2672d6

Please sign in to comment.