1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Removed django.test.simple and django.test._doctest per deprecation timeline.

refs #17365, #17366, #18727.
This commit is contained in:
Tim Graham
2014-03-21 13:30:40 -04:00
parent b71f183d2e
commit bf5430a20b
9 changed files with 3 additions and 3162 deletions

View File

@@ -11,8 +11,7 @@ from django.http import HttpResponse
from django.template.loader import render_to_string
from django.test import SimpleTestCase, TestCase, skipIfDBFeature, skipUnlessDBFeature
from django.test.html import HTMLParseError, parse_html
from django.test.utils import (CaptureQueriesContext,
IgnoreAllDeprecationWarningsMixin, override_settings)
from django.test.utils import CaptureQueriesContext, override_settings
from django.utils import six
from .models import Person
@@ -623,15 +622,6 @@ class AssertFieldOutputTests(SimpleTestCase):
self.assertFieldOutput(MyCustomField, {}, {}, empty_value=None)
class DoctestNormalizerTest(IgnoreAllDeprecationWarningsMixin, SimpleTestCase):
def test_normalizer(self):
from django.test.simple import make_doctest
suite = make_doctest("test_utils.doctest_output")
failures = unittest.TextTestRunner(stream=six.StringIO()).run(suite)
self.assertEqual(failures.failures, [])
# for OverrideSettingsTests
def fake_view(request):
pass