File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
lambdas/tests/e2e/api/fhir Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 44
55from enums .document_retention import DocumentRetentionDays
66from tests .e2e .api .fhir .conftest import (
7- PDM_SNOMED ,
87 TEST_NHS_NUMBER ,
98 UNKNOWN_TEST_NHS_NUMBER ,
109 create_and_store_pdm_record ,
@@ -51,11 +50,7 @@ def test_search_document_reference_for_valid_patient_details(test_data):
5150
5251 # Find the entry with the matching record_id
5352 matching_entry = next (
54- (
55- e
56- for e in entries
57- if e ["resource" ].get ("id" ) == f"{ PDM_SNOMED } ~{ expected_record_id } "
58- ),
53+ (e for e in entries if e ["resource" ].get ("id" ) == f"{ expected_record_id } " ),
5954 None ,
6055 )
6156 assert matching_entry
@@ -123,8 +118,8 @@ def test_search_document_reference_filters_by_custodian(test_data):
123118
124119 # Only records with custodian A11111 should be returned
125120 expected_ids = {
126- f"{ PDM_SNOMED } ~ { rec1 ['id' ]} " ,
127- f"{ PDM_SNOMED } ~ { rec2 ['id' ]} " ,
121+ f"{ rec1 ['id' ]} " ,
122+ f"{ rec2 ['id' ]} " ,
128123 }
129124
130125 unexpected_id = f"{ rec3 ['id' ]} "
You can’t perform that action at this time.
0 commit comments