diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-20 14:03:14 +0100 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-22 11:39:18 +0100 |
commit | 99bd39ef6e1017f75c71fc276f43a941fe6081ea (patch) | |
tree | 37b25954575ed54417373dd5171e24ce4d8bf4b7 /tests/test_runner | |
parent | 517c24bcfabcc704a6b3b3f1eb39b05a3cf41954 (diff) | |
download | django-99bd39ef6e1017f75c71fc276f43a941fe6081ea.tar.gz |
Added the ability to supply custom app configs.
Diffstat (limited to 'tests/test_runner')
-rw-r--r-- | tests/test_runner/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_runner/tests.py b/tests/test_runner/tests.py index a6dbeb0ae4..3c365b0225 100644 --- a/tests/test_runner/tests.py +++ b/tests/test_runner/tests.py @@ -226,7 +226,7 @@ class ModulesTestsPackages(IgnoreAllDeprecationWarningsMixin, unittest.TestCase) "Check that the get_tests helper function can find tests in a directory" from django.core.apps.base import AppConfig from django.test.simple import get_tests - app_config = AppConfig('test_runner.valid_app') + app_config = AppConfig.create('test_runner.valid_app') app_config.import_models({}) tests = get_tests(app_config) self.assertIsInstance(tests, types.ModuleType) @@ -235,7 +235,7 @@ class ModulesTestsPackages(IgnoreAllDeprecationWarningsMixin, unittest.TestCase) "Test for #12658 - Tests with ImportError's shouldn't fail silently" from django.core.apps.base import AppConfig from django.test.simple import get_tests - app_config = AppConfig('test_runner_invalid_app') + app_config = AppConfig.create('test_runner_invalid_app') app_config.import_models({}) with self.assertRaises(ImportError): get_tests(app_config) |