diff --git a/pyinfra/test/config.yaml b/pyinfra/test/config.yaml index 948062a..0a14846 100644 --- a/pyinfra/test/config.yaml +++ b/pyinfra/test/config.yaml @@ -1,4 +1,4 @@ -test: +storage: minio: s3: endpoint: "http://127.0.0.1:9000" diff --git a/pyinfra/test/unit_tests/storage_test.py b/pyinfra/test/unit_tests/storage_test.py index 1d9840c..2ee716e 100644 --- a/pyinfra/test/unit_tests/storage_test.py +++ b/pyinfra/test/unit_tests/storage_test.py @@ -56,9 +56,9 @@ def get_adapter(client_name, s3_backend): if client_name == "mock": return StorageAdapterMock(StorageClientMock()) if client_name == "azure": - return AzureStorageAdapter(get_azure_client(CONFIG.test.azure)) + return AzureStorageAdapter(get_azure_client(CONFIG.storage.azure)) if client_name == "s3": - return S3StorageAdapter(get_s3_client(CONFIG.test[s3_backend])) + return S3StorageAdapter(get_s3_client(CONFIG.storage[s3_backend])) else: raise UnknownClient(client_name)