1
0
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:
Aymeric Augustin
2013-12-14 20:36:22 +01:00
parent 5ba743e262
commit 30bdad1c47
3 changed files with 57 additions and 56 deletions

View File

@@ -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)