From 19ae235b628cf932cb5a8da8da676e139f827e21 Mon Sep 17 00:00:00 2001 From: magajh Date: Sun, 13 Oct 2024 19:45:00 -0400 Subject: [PATCH] fix: set default config file for Pytest --- Makefile | 2 +- setup.cfg | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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