mintel / pytest-localstack

Pytest plugin for local AWS integration tests
MIT License
78 stars 18 forks source link

Feat: Allow passing environment variables in to container #55

Open nn-bhowes opened 1 year ago

nn-bhowes commented 1 year ago

In my usecase, I need to be able to configure some of the security environment variables when starting the localstack container. This PR passes an optional dictionary of extra settings when starting the container.

e.g.

localstack = pytest_localstack.patch_fixture(
    services={"s3"},
    container_env={
        "DISABLE_CORS_CHECKS": "1",
    },
)