@@ -118,7 +118,7 @@ async def test_user_restricted_invalid_ods_code(
118118 ), "Expected a 403 when accessing the api but got " + str (response .status_code )
119119 # Verify the OperationOutcome payload
120120 response_data = response .json ()
121- assert response_data ["resourceType" ] == "OperationOutcome "
121+ assert response_data ["resourceType" ] == "CodeSystem "
122122 assert response_data ["meta" ]["lastUpdated" ] is not None
123123 assert len (response_data ["meta" ]["profile" ]) == 1
124124 assert response_data ["meta" ]["profile" ][0 ] == (
@@ -141,9 +141,7 @@ async def test_user_restricted_invalid_ods_code(
141141 if is_fhir_4
142142 else "https://fhir.nhs.uk/STU3/CodeSystem/eRS-APIErrorCode-1"
143143 )
144- assert (
145- issue_details ["code" ] == "ACCESS_DENIED" if is_fhir_4 else "NO_ACCESS"
146- )
144+ assert issue_details ["code" ] == "ACCESS_DENIED" if is_fhir_4 else "NO_ACCESS"
147145
148146 @pytest .mark .asyncio
149147 @pytest .mark .parametrize (
@@ -188,7 +186,7 @@ async def test_user_restricted_missing_ods_header(
188186 ), "Expected a 400 when accessing the api but got " + str (response .status_code )
189187 # Verify the OperationOutcome payload
190188 response_data = response .json ()
191- assert response_data ["resourceType" ] == "OperationOutcome "
189+ assert response_data ["resourceType" ] == "CodeSystem "
192190 assert response_data ["meta" ]["lastUpdated" ] is not None
193191 assert len (response_data ["meta" ]["profile" ]) == 1
194192 assert response_data ["meta" ]["profile" ][0 ] == (
@@ -259,7 +257,7 @@ async def test_user_restricted_missing_ods_code(
259257 ), "Expected a 400 when accessing the api but got " + str (response .status_code )
260258 # Verify the OperationOutcome payload
261259 response_data = response .json ()
262- assert response_data ["resourceType" ] == "OperationOutcome "
260+ assert response_data ["resourceType" ] == "CodeSystem "
263261 assert response_data ["meta" ]["lastUpdated" ] is not None
264262 assert len (response_data ["meta" ]["profile" ]) == 1
265263 assert response_data ["meta" ]["profile" ][0 ] == (
0 commit comments