Skip to content

Commit b12bf0a

Browse files
adds logging for apim_app_flow_vars
1 parent be591ce commit b12bf0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def asid(is_mocked_environment):
8282
@pytest.fixture(scope="session")
8383
def apim_app_flow_vars(allowListodsCode=None):
8484
if allowListodsCode is not None:
85+
print(f"Using allowListodsCode: {allowListodsCode}")
8586
return {"ers": {"allowListodsCode": allowListodsCode}}
8687

8788

@@ -314,6 +315,8 @@ async def _make_app(product, custom_attributes={}):
314315
devAppAPI = DeveloperAppsAPI(client=client)
315316
app_name = f"apim-auto-{uuid4()}"
316317

318+
print(f"Custom attributes: {custom_attributes}")
319+
317320
attributes = [
318321
{"name": key, "value": value} for key, value in custom_attributes.items()
319322
]
@@ -341,6 +344,8 @@ async def _make_app(product, custom_attributes={}):
341344
def authenticate_user(client, user_restricted_app, environment, oauth_url):
342345
async def _auth(actor: Actor, apim_app_flow_vars=None):
343346
print(f"Attempting to authenticate: {actor}")
347+
if apim_app_flow_vars is not None:
348+
print(f"Using apim_app_flow_vars: {apim_app_flow_vars}")
344349

345350
credentials = user_restricted_app["credentials"][0]
346351

0 commit comments

Comments
 (0)