Skip to content

Commit a3bfe22

Browse files
committed
Removed tests with two decorators which appeared to be causing Azure DevOps build pipeline to fail
1 parent 2519437 commit a3bfe22

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

tests/test_endpoints.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,4 @@ def test_wait_for_status(nhsd_apim_proxy_url, status_endpoint_auth_headers):
7171
@pytest.mark.nhsd_apim_authorization({"access": "application", "level": "level0"})
7272
def test_app_level0(nhsd_apim_proxy_url, nhsd_apim_auth_headers):
7373
resp = requests.get(f"{nhsd_apim_proxy_url}", headers=nhsd_apim_auth_headers)
74-
assert resp.status_code == 401 # unauthorized
75-
76-
77-
@pytest.mark.skip(reason="TBC: Are we supporting Application level 3 access to the API?")
78-
@pytest.mark.nhsd_apim_authorization({"access": "application", "level": "level3"})
79-
def test_app_level3(nhsd_apim_proxy_url, nhsd_apim_auth_headers):
80-
resp = requests.get(f"{nhsd_apim_proxy_url}", headers=nhsd_apim_auth_headers)
81-
assert resp.status_code == 200
82-
83-
84-
@pytest.mark.skip(reason="Requires API key to be shared with proxy and decision on endpoint and user to use")
85-
@pytest.mark.nhsd_apim_authorization(
86-
{
87-
"access": "patient",
88-
"level": "P9",
89-
"login_form": {"username": "TBC"}
90-
}
91-
)
92-
def test_nhs_login_p9(nhsd_apim_proxy_url, nhsd_apim_auth_headers):
93-
resp = requests.get(f"{nhsd_apim_proxy_url}", headers=nhsd_apim_auth_headers)
94-
assert resp.status_code == 200
74+
assert resp.status_code == 401 # unauthorized

0 commit comments

Comments
 (0)