Skip to content
Snippets Groups Projects
Commit d9a7a905 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Test django nose usage

parent e67ded96
No related branches found
No related tags found
1 merge request!78Code coverage
......@@ -10,3 +10,4 @@ media
.vscode
local_settings.py
arkindex/iiif-users/
.coverage
......@@ -52,6 +52,7 @@ INSTALLED_APPS = [
'rest_framework',
'rest_framework.authtoken',
'webpack_loader',
'django_nose',
# Our apps
'arkindex.images',
......@@ -333,6 +334,13 @@ if os.environ.get('EMAIL_HOST'):
else:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Unit tests runner
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = [
'--with-coverage',
'--cover-package=arkindex',
]
# Local settings
try:
from .local_settings import * # noqa
......
......@@ -4,6 +4,7 @@ certifi==2017.7.27.1
chardet==3.0.4
Django==2.1
django-enumfields==0.10.0
django-nose==1.4.5
djangorestframework==3.7.1
django-webpack-loader==0.5.0
elasticsearch==6.2.0
......@@ -13,12 +14,13 @@ idna==2.6
ijson==2.3
jdcal==1.3
lxml==4.2.3
nose==1.3.7
olefile==0.44
openpyxl==2.4.9
Pillow==4.3.0
psycopg2==2.7.3.2
python-magic==0.4.15
python-Levenshtein==0.12.0
python-magic==0.4.15
python-memcached==1.59
pytz==2017.2
redis==2.10.6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment