mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
parent
99bd39ef6e
commit
2fef9e5375
95 changed files with 101 additions and 101 deletions
|
|
@ -224,7 +224,7 @@ 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.core.apps.base import AppConfig
|
||||
from django.apps.base import AppConfig
|
||||
from django.test.simple import get_tests
|
||||
app_config = AppConfig.create('test_runner.valid_app')
|
||||
app_config.import_models({})
|
||||
|
|
@ -233,7 +233,7 @@ class ModulesTestsPackages(IgnoreAllDeprecationWarningsMixin, unittest.TestCase)
|
|||
|
||||
def test_import_error(self):
|
||||
"Test for #12658 - Tests with ImportError's shouldn't fail silently"
|
||||
from django.core.apps.base import AppConfig
|
||||
from django.apps.base import AppConfig
|
||||
from django.test.simple import get_tests
|
||||
app_config = AppConfig.create('test_runner_invalid_app')
|
||||
app_config.import_models({})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue