mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refactored old test runner to handle apps without a models module.
This commit is contained in:
@@ -20,8 +20,8 @@ class SuiteOverrideTest(IgnoreAllDeprecationWarningsMixin, unittest.TestCase):
|
||||
"""
|
||||
|
||||
from django.test.simple import build_suite
|
||||
app = app_cache.get_app_config("test_suite_override").models_module
|
||||
suite = build_suite(app)
|
||||
app_config = app_cache.get_app_config("test_suite_override")
|
||||
suite = build_suite(app_config)
|
||||
self.assertEqual(suite.countTestCases(), 1)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user