Skip to content

Commit 87508cf

Browse files
committed
AMB-1741 use fake token
1 parent 31c2856 commit 87508cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_immunisation_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def get_event_by_id(self, event_id):
2323
}
2424
)
2525
def test_get_event_by_id_not_found_nhs_login(nhsd_apim_proxy_url, nhsd_apim_auth_headers):
26-
token = nhsd_apim_auth_headers["access_token"] # <- not tested
26+
# token = nhsd_apim_auth_headers["access_token"] # <- not tested
27+
token = "token"
2728
imms_api = ImmunisationApi(nhsd_apim_proxy_url, token)
2829
res = imms_api.get_event_by_id("some-id-that-does-not-exist")
2930
print(res)
@@ -38,7 +39,8 @@ def test_get_event_by_id_not_found_nhs_login(nhsd_apim_proxy_url, nhsd_apim_auth
3839
})
3940
def test_get_event_by_id_not_found_app_restricted(nhsd_apim_proxy_url, nhsd_apim_auth_headers):
4041
# TODO same here but with app restricted, probably refactor both into a function instead of copy paste
41-
token = nhsd_apim_auth_headers["access_token"] # <- not tested
42+
# token = nhsd_apim_auth_headers["access_token"] # <- not tested
43+
token = "token"
4244
imms_api = ImmunisationApi(nhsd_apim_proxy_url, token)
4345
res = imms_api.get_event_by_id("some-id-that-does-not-exist")
4446
print(res)

0 commit comments

Comments
 (0)