Skip to content

Commit ad46b1f

Browse files
[RAA-6713]-[GC]-[Flipped EUOAllowListRequired to true]-[EW]
1 parent 98ed19a commit ad46b1f

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

tests/conftest.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ async def user_restricted_product(client, make_product):
134134
"urn:nhsd:apim:user-nhs-id:aal3:e-referrals-service-api",
135135
"urn:nhsd:apim:user-nhs-id:aal2:e-referrals-service-api",
136136
],
137-
additional_attributes=[{"name": "EUOAllowlistRequired", "value": "true"}],
138137
)
139138

140139
print(f"product created: {productName}")
@@ -287,14 +286,13 @@ async def user_restricted_app(
287286
client, make_app, user_restricted_product, asid, apim_app_flow_vars
288287
):
289288
# Setup
289+
app_attrs = {"asid": asid}
290290
if apim_app_flow_vars is not None:
291291
odslist = json.dumps({"ers": {"allowListodsCode": apim_app_flow_vars}})
292-
app = await make_app(
293-
user_restricted_product,
294-
{"asid": asid, "apim-app-flow-vars": odslist},
295-
)
296-
else:
297-
app = await make_app(user_restricted_product, {"asid": asid})
292+
app_attrs["apim-app-flow-vars"] = odslist
293+
app_attrs["EUOAllowlistRequired"] = "true"
294+
295+
app = await make_app(user_restricted_product, app_attrs)
298296

299297
appName = app["name"]
300298
print(f"App created: {appName}")

0 commit comments

Comments
 (0)