Skip to content

Commit 9ad2cbf

Browse files
authored
fix: add ATLASSIAN_OAUTH_ENABLE to clean_env mock environment (#587)
The test_no_services_configured test was failing because ATLASSIAN_OAUTH_ENABLE environment variable was not being cleared in MockEnvironment.clean_env(). This caused the get_available_services() function to detect OAuth configuration even in a supposedly clean environment. Added ATLASSIAN_OAUTH_ENABLE to the list of variables cleared by clean_env() to ensure tests run with a truly clean environment.
1 parent 31e637b commit 9ad2cbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/utils/mocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def clean_env():
5858
"ATLASSIAN_OAUTH_REDIRECT_URI",
5959
"ATLASSIAN_OAUTH_SCOPE",
6060
"ATLASSIAN_OAUTH_CLOUD_ID",
61+
"ATLASSIAN_OAUTH_ENABLE",
6162
]
6263

6364
# Remove auth vars from environment

0 commit comments

Comments
 (0)