fix test and dockerfile of django

fix test and dockerfile of django
This commit is contained in:
jnfire 2022-08-01 16:58:51 +02:00
parent 86ee2172d3
commit edef594e59
2 changed files with 6 additions and 1 deletions

View File

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

5
pytest.ini Normal file
View File

@ -0,0 +1,5 @@
[pytest]
DJANGO_SETTINGS_MODULE = core.settings
# -- recommended but optional:
python_files = test_*.py