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
|
||||
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
2
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:
|
||||
|
Loading…
Reference in New Issue
Block a user