build(test): explicite l'utilisation du nouveau TestRunner

main
Vincent Adolphe 2022-12-29 18:12:40 +01:00
Parent fc3652ed7b
révision 50a08c31d4
3 fichiers modifiés avec 3 ajouts et 8 suppressions

Voir le fichier

@ -1,3 +0,0 @@
from .test_client import PageTest # noqa
from .test_form import FormTest # noqa
from .test_model_repr import ModelStrTest # noqa

Voir le fichier

@ -20,6 +20,9 @@ DATABASES = {
MANAGERS = ADMINS
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.

Voir le fichier

@ -5,7 +5,6 @@ from settings_default import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DJ_DEBUG_TOOLBAR = False
DJ_COVERAGE = False
DATABASES = {
'default': {
@ -49,10 +48,6 @@ if DJ_DEBUG_TOOLBAR:
) + MIDDLEWARE_CLASSES
INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
if DJ_COVERAGE:
INSTALLED_APPS = INSTALLED_APPS + ('django_coverage',)
TEST_RUNNER = 'django_coverage.coverage_runner.CoverageRunner'
#LOGIN_REDIRECT_URL = '/'
#REQUIRE_LOGIN_PATH = '/accounts/login/'