api/tests/mock_storage.py
2024-01-15 13:32:24 +01:00

10 lines
321 B
Python

from piracyshield_data_storage.blob.drivers.azure import AzureBlobStorage
import os
mock_storage = AzureBlobStorage(
connection_string = os.environ.get("PIRACYSHIELD_MOCK_STORAGE_CONNECTION_STRING"),
container_name = os.environ.get("PIRACYSHIELD_MOCK_STORAGE_CONTAINER_NAME")
)
mock_storage.create_container()