mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
Update test_provider.py
This commit is contained in:
@@ -298,9 +298,9 @@ class TestAzureStorageProvider:
|
|||||||
mock_container_client.get_blob_client.return_value = mock_blob_client
|
mock_container_client.get_blob_client.return_value = mock_blob_client
|
||||||
|
|
||||||
# Mock `from_connection_string` and `BlobServiceClient` constructor
|
# Mock `from_connection_string` and `BlobServiceClient` constructor
|
||||||
monkeypatch.setattr("azure.storage.blob.BlobServiceClient", lambda *_: mock_blob_service_client)
|
monkeypatch.setattr(azure.storage.blob.BlobServiceClient, lambda *_: mock_blob_service_client)
|
||||||
|
monkeypatch.setattr(azure.storage.blob.BlobContainerClient, lambda *_: mock_container_client)
|
||||||
|
monkeypatch.setattr(azure.storage.blob.BlobClient, lambda *_: mock_blob_client)
|
||||||
|
|
||||||
self.Storage = provider.AzureStorageProvider()
|
self.Storage = provider.AzureStorageProvider()
|
||||||
self.Storage.endpoint = "https://myaccount.blob.core.windows.net"
|
self.Storage.endpoint = "https://myaccount.blob.core.windows.net"
|
||||||
|
|||||||
Reference in New Issue
Block a user