From 4f196a106f41d9d103823e1f01e8a3bfa75371c2 Mon Sep 17 00:00:00 2001 From: Kenzo-Hugo Hillion <kenzo-hugo.hillion1@pasteur.fr> Date: Wed, 19 Jun 2019 14:45:39 +0200 Subject: [PATCH] add missing requirements for dev fight with CI --- .gitlab-ci.yml | 3 +-- backend/metagenedb/{tests => }/apps/accounts/test_auth.py | 0 backend/requirements_dev.txt | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) rename backend/metagenedb/{tests => }/apps/accounts/test_auth.py (100%) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8c885e5..e831c7b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,5 +30,4 @@ test-backend: DJANGO_SETTINGS_MODULE: "metagenedb.settings-gitlab-ci" script: - flake8 --max-line-length 120 - - coverage run --source='.' scripts/manage.py test metagenedb/tests - - coverage report + - pytest --cov . diff --git a/backend/metagenedb/tests/apps/accounts/test_auth.py b/backend/metagenedb/apps/accounts/test_auth.py similarity index 100% rename from backend/metagenedb/tests/apps/accounts/test_auth.py rename to backend/metagenedb/apps/accounts/test_auth.py diff --git a/backend/requirements_dev.txt b/backend/requirements_dev.txt index 5e56a93..01571fc 100644 --- a/backend/requirements_dev.txt +++ b/backend/requirements_dev.txt @@ -5,7 +5,9 @@ Django==2.2.1 django-cors-headers==3.0.2 django-environ==0.4.5 django-extensions==2.1.7 +django-filter==2.1.0 djangorestframework==3.9.4 +djangorestframework-jwt==1.11.0 entrypoints==0.3 flake8==3.7.7 importlib-metadata==0.18 @@ -17,9 +19,11 @@ psycopg2==2.8.2 py==1.8.0 pycodestyle==2.5.0 pyflakes==2.1.1 +PyJWT==1.7.1 pyparsing==2.4.0 pytest==4.6.3 pytest-cov==2.7.1 +pytest-django==3.5.0 pytz==2019.1 six==1.12.0 sqlparse==0.3.0 -- GitLab