Skip to content

Commit 46c0da5

Browse files
added the pylint check
1 parent d29aea2 commit 46c0da5

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

src/tests/backend/helper/azure_credential_utils_test.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
from unittest.mock import patch, MagicMock
2-
import pytest
3-
import sys
1+
from unittest.mock import MagicMock, patch
2+
43
import os
4+
import sys
5+
6+
import pytest
7+
8+
9+
510

611
# Add the backend directory to the Python path
712
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../backend")))
813
import helper.azure_credential_utils as azure_credential_utils
914

15+
16+
1017
@pytest.fixture
1118
def mock_env_vars():
1219
return {
@@ -88,4 +95,4 @@ async def test_get_azure_credential_async_non_dev_env(self, mock_aio_managed_ide
8895
# Assert
8996
mock_aio_managed_identity_credential.assert_called_once_with(client_id="test-client-id")
9097
mock_aio_default_azure_credential.assert_not_called()
91-
assert credential == mock_aio_managed_credential
98+
assert credential == mock_aio_managed_credential

0 commit comments

Comments
 (0)