Browse Source

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

main
Vincent Adolphe 5 months ago
parent
commit
50a08c31d4
  1. 3
      grapes/bdd/tests/__init__.py
  2. 3
      grapes/settings_default.py
  3. 5
      grapes/settings_local.py.sample

3
grapes/bdd/tests/__init__.py

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

3
grapes/settings_default.py

@ -20,6 +20,9 @@ DATABASES = { @@ -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.

5
grapes/settings_local.py.sample

@ -5,7 +5,6 @@ from settings_default import * @@ -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: @@ -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/'

Loading…
Cancel
Save
Map all the world