Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ format: ## Format and fix code
poetry run ruff format .
poetry run ruff check . --fix-only

format_lint: format lint

#Files to loop over in release
_dist_include="pytest.ini poetry.lock poetry.toml pyproject.toml Makefile build/. tests"

Expand Down

This file was deleted.

This file was deleted.

14 changes: 6 additions & 8 deletions tests/e2e/tests/test_error_scenario_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,13 @@ def test_check_for_missing_person(eligibility_client):
"details": {
"coding": [
{
"code": "ACCESS_DENIED",
"display": "Access has been denied to process this request.",
"system": "https://fhir.nhs.uk/STU3/ValueSet/Spine-ErrorOrWarningCode-1",
"code": "INVALID_NHS_NUMBER",
"display": "The provided NHS number does not match the record.",
}
]
},
"diagnostics": "NHS Number 9934567890 does not match the header NHS Number 99345678900",
"location": ["parameters/id"],
"diagnostics": "You are not authorised to request information for the supplied NHS Number",
}
],
},
Expand All @@ -122,14 +121,13 @@ def test_check_for_missing_person(eligibility_client):
"details": {
"coding": [
{
"code": "ACCESS_DENIED",
"display": "Access has been denied to process this request.",
"system": "https://fhir.nhs.uk/STU3/ValueSet/Spine-ErrorOrWarningCode-1",
"code": "INVALID_NHS_NUMBER",
"display": "The provided NHS number does not match the record.",
}
]
},
"diagnostics": "NHS Number 1234567890 does not match the header NHS Number ",
"location": ["parameters/id"],
"diagnostics": "You are not authorised to request information for the supplied NHS Number",
}
],
},
Expand Down