Skip to content

Commit e4bb655

Browse files
committed
Update the mock
1 parent 6f78a19 commit e4bb655

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def mock_env(monkeypatch, request):
314314
if os.getenv("AZURE_USE_AUTHENTICATION") is not None:
315315
monkeypatch.delenv("AZURE_USE_AUTHENTICATION")
316316

317-
with mock.patch("app.DefaultAzureCredential") as mock_default_azure_credential:
317+
with mock.patch("app.AzureDeveloperCliCredential") as mock_default_azure_credential:
318318
mock_default_azure_credential.return_value = MockAzureCredential()
319319
yield
320320

@@ -383,7 +383,7 @@ async def auth_client(
383383
for key, value in request.param.items():
384384
monkeypatch.setenv(key, value)
385385

386-
with mock.patch("app.DefaultAzureCredential") as mock_default_azure_credential:
386+
with mock.patch("app.AzureDeveloperCliCredential") as mock_default_azure_credential:
387387
mock_default_azure_credential.return_value = MockAzureCredential()
388388
quart_app = app.create_app()
389389

@@ -422,7 +422,7 @@ async def auth_public_documents_client(
422422
for key, value in request.param.items():
423423
monkeypatch.setenv(key, value)
424424

425-
with mock.patch("app.DefaultAzureCredential") as mock_default_azure_credential:
425+
with mock.patch("app.AzureDeveloperCliCredential") as mock_default_azure_credential:
426426
mock_default_azure_credential.return_value = MockAzureCredential()
427427
quart_app = app.create_app()
428428

0 commit comments

Comments
 (0)