Skip to content

Commit 5cd827f

Browse files
authored
Users/v soujanya/testfailurefixes (#1489)
* fixing the test failure * Change validate_token_for_instance mock return value from True to None * remove the MagicMock
1 parent 29f1348 commit 5cd827f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/merge-workflow.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ jobs:
8787
python-version:
8888
- '3.12'
8989
- '3.11'
90-
- '3.10'
91-
- '3.9'
9290
steps:
9391
- uses: actions/checkout@v2
9492
- uses: ./.github/actions/run-tests

azure-devops/azext_devops/tests/utils/authentication.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ def authentication_setup(self):
2626

2727
def authenticate(self):
2828
# set return values
29-
self.mock_validate_token.return_value = True
29+
# Return None instead of True to prevent token validation side effects
30+
self.mock_validate_token.return_value = None
3031
self.mock_get_credential.return_value = UNIT_TEST_PAT_TOKEN

0 commit comments

Comments
 (0)