diff options
| author | Tim Graham <timograham@gmail.com> | 2014-03-21 13:30:40 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-03-21 13:36:46 -0400 |
| commit | bf5430a20b65b3e76a2f8cd2580101e0baa59f82 (patch) | |
| tree | ee2f0a27113d4bcf8e79c3d296936ed70834dfa6 /tests/test_runner | |
| parent | b71f183d2e4eb9397ae52c139eb0863be731b778 (diff) | |
Removed django.test.simple and django.test._doctest per deprecation timeline.
refs #17365, #17366, #18727.
Diffstat (limited to 'tests/test_runner')
| -rw-r--r-- | tests/test_runner/tests.py | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/tests/test_runner/tests.py b/tests/test_runner/tests.py index 20e7f6b892..8ec244cf8d 100644 --- a/tests/test_runner/tests.py +++ b/tests/test_runner/tests.py @@ -4,7 +4,6 @@ Tests for django test runner from __future__ import unicode_literals from optparse import make_option -import types import unittest from django.core.exceptions import ImproperlyConfigured @@ -12,7 +11,7 @@ from django.core.management import call_command from django import db from django.test import runner, TestCase, TransactionTestCase, skipUnlessDBFeature from django.test.testcases import connections_support_transactions -from django.test.utils import IgnoreAllDeprecationWarningsMixin, override_system_checks +from django.test.utils import override_system_checks from django.utils import six from admin_scripts.tests import AdminScriptTestCase @@ -221,27 +220,6 @@ class Ticket17477RegressionTests(AdminScriptTestCase): self.assertNoOutput(err) -class ModulesTestsPackages(IgnoreAllDeprecationWarningsMixin, unittest.TestCase): - - def test_get_tests(self): - "Check that the get_tests helper function can find tests in a directory" - from django.apps import AppConfig - from django.test.simple import get_tests - app_config = AppConfig.create('test_runner.valid_app') - app_config.import_models({}) - tests = get_tests(app_config) - self.assertIsInstance(tests, types.ModuleType) - - def test_import_error(self): - "Test for #12658 - Tests with ImportError's shouldn't fail silently" - from django.apps import AppConfig - from django.test.simple import get_tests - app_config = AppConfig.create('test_runner_invalid_app') - app_config.import_models({}) - with self.assertRaises(ImportError): - get_tests(app_config) - - class Sqlite3InMemoryTestDbs(TestCase): available_apps = [] |
