We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46c0da5 commit 675fdf0Copy full SHA for 675fdf0
1 file changed
src/tests/backend/helper/azure_credential_utils_test.py
@@ -1,17 +1,9 @@
1
-from unittest.mock import MagicMock, patch
2
-
3
import os
4
-import sys
5
6
-import pytest
7
8
9
+from unittest.mock import MagicMock, patch
10
11
-# Add the backend directory to the Python path
12
-sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../backend")))
13
import helper.azure_credential_utils as azure_credential_utils
14
+import pytest
15
16
17
@pytest.fixture
@@ -20,6 +12,7 @@ def mock_env_vars():
20
"APP_ENV": "dev"
21
}
22
+
23
class TestAzureCredentialUtils:
24
@patch.dict(os.environ, {}, clear=True)
25
18
@patch("helper.azure_credential_utils.DefaultAzureCredential")
0 commit comments