mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.
This commit is contained in:
parent
c0d8932a6d
commit
9012833af8
79 changed files with 959 additions and 1019 deletions
|
@ -19,9 +19,9 @@ from django import conf, get_version
|
|||
from django.conf import settings
|
||||
from django.core.management import BaseCommand, CommandError
|
||||
from django.db import connection
|
||||
from django.test.simple import DjangoTestSuiteRunner
|
||||
from django.test.runner import DiscoverRunner
|
||||
from django.utils import unittest
|
||||
from django.utils.encoding import force_str, force_text
|
||||
from django.utils.encoding import force_text
|
||||
from django.utils._os import upath
|
||||
from django.utils.six import StringIO
|
||||
from django.test import LiveServerTestCase
|
||||
|
@ -1090,7 +1090,7 @@ class ManageValidate(AdminScriptTestCase):
|
|||
self.assertOutput(out, '0 errors found')
|
||||
|
||||
|
||||
class CustomTestRunner(DjangoTestSuiteRunner):
|
||||
class CustomTestRunner(DiscoverRunner):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
assert 'liveserver' not in kwargs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue