Skip to content

Commit bc8d928

Browse files
define user and pass org code
1 parent f6bfc54 commit bc8d928

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

tests/integration/test_user_restricted.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,24 @@ class TestUserRestricted:
3232

3333
@pytest.mark.asyncio
3434
@pytest.mark.parametrize(
35-
"endpoint_url, is_fhir_4",
36-
"apim_app_flow_vars",
35+
"endpoint_url, is_fhir_4, user, apim_app_flow_vars ",
3736
[
38-
("", False, [referring_clinician.org_code]),
39-
("/FHIR/R4/", True, [referring_clinician.org_code]),
40-
("/FHIR/STU3/", False, [referring_clinician.org_code]),
37+
("", False, Actor.RC, [Actor.RC.org_code]),
38+
("/FHIR/R4/", True, Actor.RC, [Actor.RC.org_code]),
39+
("/FHIR/STU3/", False, Actor.RC, [Actor.RC.org_code]),
4140
],
4241
)
4342
async def test_user_restricted_valid_ods_code(
4443
self,
4544
authenticate_user,
46-
referring_clinician,
45+
user: Actor,
4746
endpoint_url,
4847
is_fhir_4,
4948
service_url,
5049
apim_app_flow_vars,
5150
update_user_restricted_product,
5251
):
53-
access_code = await authenticate_user(referring_clinician)
52+
access_code = await authenticate_user(user)
5453

5554
client_request_headers = {
5655
_HEADER_ECHO: "", # enable echo target

0 commit comments

Comments
 (0)