Skip to content

Commit 7f60411

Browse files
committed
Remove duplicate _clean_env in test_e2e.py; import from lab_config instead
1 parent 9dbad21 commit 7f60411

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/test_e2e.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from tests.broker_util import is_pymsalruntime_installed
2929
from tests.lab_config import (
3030
get_user_config, get_app_config, get_user_password, get_secret,
31-
UserSecrets, AppSecrets, LAB_APP_CLIENT_ID,
31+
UserSecrets, AppSecrets, LAB_APP_CLIENT_ID, _clean_env,
3232
)
3333

3434

@@ -54,12 +54,6 @@
5454
)
5555

5656

57-
def _clean_env(name):
58-
"""Return the env var value, or None if unset or it contains an unexpanded
59-
ADO pipeline variable literal such as ``$(VAR_NAME)``."""
60-
value = os.getenv(name)
61-
return None if (not value or value.startswith("$(")) else value
62-
6357

6458
def _get_app_and_auth_code(
6559
client_id,

0 commit comments

Comments
 (0)