fix: remove pytest.ini, flip RESOLVE_IAM default

This commit is contained in:
Stefan Reimer 2022-02-10 17:46:06 +01:00
parent d20980ae34
commit a315bddef2
2 changed files with 1 additions and 5 deletions

View File

@ -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

2
app.py
View File

@ -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: