Skip to content

Commit c2aedad

Browse files
committed
add data for search by identifier
1 parent 3110b6d commit c2aedad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backend/tests/test_fhir_service.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,11 @@ def test_get_immunization_by_identifier(self):
323323
imms_id = "an-id#an-id"
324324
identifier = "test"
325325
element = "id,mEta,DDD"
326-
self.imms_repo.get_immunization_by_identifier.return_value = None
326+
self.imms_repo.get_immunization_by_identifier.return_value = {
327+
"resource": create_covid_19_immunization_dict(imms_id),
328+
"id": imms_id,
329+
"Version": 1,
330+
}
327331

328332
# When
329333
service_resp = self.fhir_service.get_immunization_by_identifier(imms_id, "COVID19.S", identifier, element)

0 commit comments

Comments
 (0)