From edef594e5952da9d0c34af61a01fb05f5bdab1b6 Mon Sep 17 00:00:00 2001 From: jnfire Date: Mon, 1 Aug 2022 16:58:51 +0200 Subject: [PATCH] fix test and dockerfile of django fix test and dockerfile of django --- Dockerfiles/django/Dockerfile | 2 +- pytest.ini | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 pytest.ini diff --git a/Dockerfiles/django/Dockerfile b/Dockerfiles/django/Dockerfile index 1c298c5..d79b72e 100644 --- a/Dockerfiles/django/Dockerfile +++ b/Dockerfiles/django/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:11 +FROM python:3.10-slim # Prevents Python from writing pyc files to disc (equivalent to python -B option) ENV PYTHONDONTWRITEBYTECODE 1 diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..1bc85b2 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,5 @@ +[pytest] +DJANGO_SETTINGS_MODULE = core.settings + +# -- recommended but optional: +python_files = test_*.py \ No newline at end of file