mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-07 16:44:03 +01:00
Test fix: adding a django.setup() phase
This commit is contained in:
parent
f0156cfcb3
commit
afb0bd25b3
@ -1,8 +1,11 @@
|
||||
import os
|
||||
import sys
|
||||
import argparse
|
||||
|
||||
import django
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class QuickDjangoTest(object):
|
||||
"""
|
||||
A quick way to run the Django test suite without a fully-configured project.
|
||||
@ -79,6 +82,8 @@ class QuickDjangoTest(object):
|
||||
INSTALLED_APPS = self.INSTALLED_APPS + self.apps,
|
||||
ROOT_URLCONF = self.apps[0] + '.urls',
|
||||
)
|
||||
django.setup()
|
||||
|
||||
from django.test.simple import DjangoTestSuiteRunner
|
||||
failures = DjangoTestSuiteRunner().run_tests(self.apps, verbosity=1)
|
||||
if failures:
|
||||
|
Loading…
Reference in New Issue
Block a user