applied black
This commit is contained in:
parent
e16590af20
commit
0e74828a45
@ -3,4 +3,4 @@ import pytest
|
||||
|
||||
@pytest.fixture
|
||||
def bucket_name():
|
||||
return "test-bucket"
|
||||
return "test-bucket"
|
||||
|
||||
@ -1,9 +1,5 @@
|
||||
import tempfile
|
||||
|
||||
import pytest
|
||||
|
||||
from pyinfra.storage.adapters.azure import AzureStorageAdapter
|
||||
from pyinfra.storage.clients.azure import get_azure_client
|
||||
from pyinfra.storage.storage import Storage
|
||||
from pyinfra.storage.storages import get_azure_storage
|
||||
from pyinfra.test.storage.adapter_mock import StorageAdapterMock
|
||||
@ -11,7 +7,6 @@ from pyinfra.test.storage.client_mock import StorageClientMock
|
||||
|
||||
|
||||
class StorageTester:
|
||||
|
||||
def __init__(self, adapter):
|
||||
self.bucket_name = "pyinfra-test-bucket"
|
||||
self.storage = Storage(adapter=adapter)
|
||||
@ -46,7 +41,7 @@ def storage_tester(client_name):
|
||||
return StorageTester(client)
|
||||
|
||||
|
||||
@pytest.mark.parametrize('client_name', ["mock", "azure"])
|
||||
@pytest.mark.parametrize("client_name", ["mock", "azure"])
|
||||
def test_storages(storage_tester):
|
||||
storage_tester.test_purging_bucket_yields_empty_bucket()
|
||||
storage_tester.test_getting_objects_put_in_bucket_are_objects()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user