Skip to content

Commit 37876a7

Browse files
committed
fix message
1 parent e7f53c5 commit 37876a7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

features/eps_fhir/validator.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ Feature: I can call the validator endpoint
2020
When I make a invalid request to the eps_fhir validator endpoint with show validation set to false
2121
Then the response indicates a bad request
2222
And the validator response has many error issue
23-
And the validator response has error with diagnostic Failed to parse JSON encoded FHIR content: Content does not appear to be FHIR JSON, first non-whitespace character was: '\"' (must be '{')"}]}
23+
And the validator response has error with diagnostic containing "Failed to parse JSON encoded FHIR content"

features/eps_fhir_dispensing/validator.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ Feature: I can call the validator endpoint
2020
When I make a invalid request to the eps_fhir validator endpoint with show validation set to false
2121
Then the response indicates a bad request
2222
And the validator response has many error issue
23-
And the validator response has error with diagnostic Failed to parse JSON encoded FHIR content: Content does not appear to be FHIR JSON, first non-whitespace character was: '\"' (must be '{')"}]}
23+
And the validator response has error with diagnostic containing "Failed to parse JSON encoded FHIR content"

features/eps_fhir_prescribing/validator.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ Feature: I can call the validator endpoint
2020
When I make a invalid request to the eps_fhir validator endpoint with show validation set to false
2121
Then the response indicates a bad request
2222
And the validator response has many error issue
23-
And the validator response has error with diagnostic Failed to parse JSON encoded FHIR content: Content does not appear to be FHIR JSON, first non-whitespace character was: '\"' (must be '{')"}]}
23+
And the validator response has error with diagnostic containing "Failed to parse JSON encoded FHIR content"

features/steps/eps_api_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def validator_response_has_error_issue_with_diagnostic(context, diagnostic):
221221
json_response = json.loads(context.response.content)
222222
assert_that(json_response["resourceType"]).is_equal_to("OperationOutcome")
223223
actual_issue_count = sum(
224-
p["severity"] == "error" and p["diagnostics"] == diagnostic
224+
p["severity"] == "error" and diagnostic in p["diagnostics"]
225225
for p in json_response["issue"]
226226
)
227227
assert_that(actual_issue_count).is_equal_to(1)

0 commit comments

Comments
 (0)