From a315bddef2332f037ec9a46cd7439c0f288cd823 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Thu, 10 Feb 2022 17:46:06 +0100 Subject: [PATCH] fix: remove pytest.ini, flip RESOLVE_IAM default --- Dockerfile | 4 ---- app.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e19e6f0..fd6c3e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,13 +58,9 @@ RUN chmod 0755 /usr/local/bin/aws-lambda-rie && \ # Install pytest RUN pip install pytest --target /app -COPY pytest.ini /app # Add our tests ADD tests /app/tests -# Disable AWS API calls -ENV RESOLVE_ACCOUNT="false" - # Run tests RUN python -m pytest --capture=tee-sys tests diff --git a/app.py b/app.py index f7aed73..84767ba 100644 --- a/app.py +++ b/app.py @@ -29,7 +29,7 @@ def boolean(value): DEBUG = boolean(os.getenv("DEBUG", default=False)) -RESOLVE_ACCOUNT = boolean(os.getenv("RESOLVE_ACCOUNT", default=True)) +RESOLVE_ACCOUNT = boolean(os.getenv("RESOLVE_ACCOUNT", default=False)) WEBHOOK_URL = os.environ.get("WEBHOOK_URL", "dbus://") if DEBUG: