Skip to content

Commit 1d26796

Browse files
committed
back to contain
1 parent 8cf01dd commit 1d26796

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,13 @@ def validator_response_has_n_issues_of_type(context, expected_issue_count, issue
216216
assert_that(int(expected_issue_count)).is_equal_to(actual_issue_count)
217217

218218

219-
@then("the validator response has error with diagnostic {diagnostic}")
219+
@then("the validator response has error with diagnostic containing {diagnostic}")
220220
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
print(f"expected diagnostic: {diagnostic}")
224224
actual_issue_count = sum(
225-
p["severity"] == "error" and p["diagnostics"] == diagnostic
225+
p["severity"] == "error" and diagnostic in p["diagnostics"]
226226
for p in json_response["issue"]
227227
)
228228
assert_that(actual_issue_count).is_equal_to(1)

0 commit comments

Comments
 (0)