From df3fc6da3a870aff7d5c35dbd9f76ff5bd0b6ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Tue, 2 Mar 2021 11:22:23 +0100 Subject: Replace setup.py test with nose2 We can't use python -m unittest discover directly, as it mistakenly tries to import the source code of the Django test app without going through the setup_django module first. --- Makefile | 2 +- setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6871485..c617168 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ testall: # DOC: Run tests for the currently installed version test: - python -Wdefault setup.py test + python -Wdefault -m nose2 # DOC: Perform code quality tasks lint: check-manifest flake8 diff --git a/setup.cfg b/setup.cfg index 778ba33..799dba3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,6 +36,7 @@ install_requires = dev = Django>=1.11 # Runners + nose2 tox # Quality check_manifest -- cgit v1.2.1