Don't use external libraries when running tests

This commit is contained in:
Yohann D'ANELLO 2020-12-28 19:12:07 +01:00
parent 67b01ea0b3
commit 0079b6d96d
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ py39:
stage: test stage: test
image: python:3.9-alpine image: python:3.9-alpine
before_script: before_script:
- apk add --no-cache gcc libmagic - apk add --no-cache libmagic
- pip install tox --no-cache-dir - pip install tox --no-cache-dir
script: tox -e py39 script: tox -e py39

View File

@ -68,7 +68,7 @@ INSTALLED_APPS = [
'participation', 'participation',
] ]
if "test" not in sys.argv: # pragma: no cover if "test" not in sys.argv and not "makemigrations" in sys.argv: # pragma: no cover
INSTALLED_APPS += [ INSTALLED_APPS += [
'cas_server', 'cas_server',
'django_extensions', 'django_extensions',