16 lines
460 B
Python
16 lines
460 B
Python
from distutils.command.config import config
|
|
import pytest
|
|
from pyinfra.config import get_config
|
|
import os
|
|
|
|
@pytest.fixture(params=)
|
|
def storage_config(request):
|
|
if request.param == "s3":
|
|
os.environ["STORAGE_BACKEND"] = "s3"
|
|
os.environ["STORAGE_BUCKET_NAME"] = "pyinfra-test-bucket"
|
|
else:
|
|
os.environ["STORAGE_BACKEND"] = "aks"
|
|
os.environ["STORAGE_AZURECONTAINERNAME"] = "pyinfra-test-bucket"
|
|
|
|
return get_config()
|