make application testable

This commit is contained in:
Simon 2024-05-21 12:18:25 +02:00
parent 1bcb4f1f7c
commit ae89f47072
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
3 changed files with 6 additions and 2 deletions

View File

@ -44,7 +44,7 @@ RUN apt-get clean && apt-get -y update && apt-get -y install --no-install-recomm
RUN if [ "$INSTALL_DEBUG" ] ; then \
apt-get -y update && apt-get -y install --no-install-recommends \
vim htop bmon net-tools iputils-ping procps \
&& pip install --user ipython \
&& pip install --user ipython pytest pytest-django \
; fi
# make folders

View File

@ -33,7 +33,9 @@ SECRET_KEY = PW_HASH.hexdigest()
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = bool(environ.get("DJANGO_DEBUG"))
ALLOWED_HOSTS, CSRF_TRUSTED_ORIGINS = ta_host_parser(environ["TA_HOST"])
ALLOWED_HOSTS, CSRF_TRUSTED_ORIGINS = ta_host_parser(
environ.get("TA_HOST", "localhost")
)
# Application definition

View File

@ -5,4 +5,6 @@ flake8
isort
pylint
pylint-django
pytest
pytest-django
types-requests