diff --git a/Makefile b/Makefile index 46434157..f8d6ccaa 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ quality: clean ## check coding style with pycodestyle and pylint test-python: clean ## Run test suite. $(TOX) pip install -r requirements/test.txt --exists-action w - $(TOX) coverage run --source="." -m pytest ./eox_tenant --ds=eox_tenant.settings.test --ignore-glob='**/integration/*' + $(TOX) coverage run --source="." -m pytest ./eox_tenant --ignore-glob='**/integration/*' $(TOX) coverage report -m --fail-under=71 run-tests: test-python quality diff --git a/setup.cfg b/setup.cfg index 75b003ba..94a7fa2a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,11 +5,13 @@ tag = False [bumpversion:file:eox_tenant/__init__.py] +[tool:pytest] +DJANGO_SETTINGS_MODULE = eox_tenant.settings.test + [coverage:run] data_file = .coverage omit = venv/* - eox_tenant/edxapp_wrapper/backends/* [pycodestyle] count = False