mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-26 16:48:50 +01:00
fix lazy url in settings with Django 1.4
This commit is contained in:
parent
97c317f83d
commit
3e517477b7
@ -64,6 +64,8 @@ class QuickDjangoTest(object):
|
|||||||
"""
|
"""
|
||||||
Fire up the Django test suite developed for version 1.2
|
Fire up the Django test suite developed for version 1.2
|
||||||
"""
|
"""
|
||||||
|
from django.core.urlresolvers import reverse_lazy
|
||||||
|
|
||||||
settings.configure(
|
settings.configure(
|
||||||
DEBUG=True,
|
DEBUG=True,
|
||||||
DATABASES={
|
DATABASES={
|
||||||
@ -79,7 +81,7 @@ class QuickDjangoTest(object):
|
|||||||
INSTALLED_APPS=self.INSTALLED_APPS + self.apps,
|
INSTALLED_APPS=self.INSTALLED_APPS + self.apps,
|
||||||
ROOT_URLCONF=self.apps[0] + '.urls',
|
ROOT_URLCONF=self.apps[0] + '.urls',
|
||||||
STATIC_URL='/static/',
|
STATIC_URL='/static/',
|
||||||
LOGIN_URL='login',
|
LOGIN_URL=reverse_lazy('login'),
|
||||||
)
|
)
|
||||||
from django.test.simple import DjangoTestSuiteRunner
|
from django.test.simple import DjangoTestSuiteRunner
|
||||||
failures = DjangoTestSuiteRunner().run_tests(self.apps, verbosity=1)
|
failures = DjangoTestSuiteRunner().run_tests(self.apps, verbosity=1)
|
||||||
|
Loading…
Reference in New Issue
Block a user