fix: remove pytest.ini, flip RESOLVE_IAM default
This commit is contained in:
parent
d20980ae34
commit
a315bddef2
@ -58,13 +58,9 @@ RUN chmod 0755 /usr/local/bin/aws-lambda-rie && \
|
|||||||
|
|
||||||
# Install pytest
|
# Install pytest
|
||||||
RUN pip install pytest --target /app
|
RUN pip install pytest --target /app
|
||||||
COPY pytest.ini /app
|
|
||||||
|
|
||||||
# Add our tests
|
# Add our tests
|
||||||
ADD tests /app/tests
|
ADD tests /app/tests
|
||||||
|
|
||||||
# Disable AWS API calls
|
|
||||||
ENV RESOLVE_ACCOUNT="false"
|
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
RUN python -m pytest --capture=tee-sys tests
|
RUN python -m pytest --capture=tee-sys tests
|
||||||
|
2
app.py
2
app.py
@ -29,7 +29,7 @@ def boolean(value):
|
|||||||
|
|
||||||
|
|
||||||
DEBUG = boolean(os.getenv("DEBUG", default=False))
|
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://")
|
WEBHOOK_URL = os.environ.get("WEBHOOK_URL", "dbus://")
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
|
Loading…
Reference in New Issue
Block a user