Skip to content

Commit 494ad54

Browse files
committed
tests
1 parent b8fc89e commit 494ad54

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/stores/test_azure.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,3 +420,21 @@ def test_no_login():
420420

421421
with pytest.raises(RuntimeError, match=r".*Could not instantiate BlobServiceClient.*"):
422422
store.connect()
423+
424+
425+
@pytest.mark.parametrize(
426+
"credential_type",
427+
[
428+
"DefaultAzureCredential",
429+
"AzureCliCredential",
430+
],
431+
)
432+
def test_credential_type_valid(credential_type):
433+
with azurite_container():
434+
index = MemoryStore("index")
435+
store = AzureBlobStore(
436+
index,
437+
AZURITE_CONTAINER_NAME,
438+
credential_type=credential_type,
439+
)
440+
store.connect()

0 commit comments

Comments
 (0)