1
0
mirror of https://github.com/django/django.git synced 2025-03-26 17:20:49 +00:00

Fixed #25110 -- Fixed a test_runner test isolation regression.

Thanks claudep for the patch.
This commit is contained in:
Joseph Gordon 2015-07-25 20:15:50 -05:00 committed by Tim Graham
parent 7c642cafbb
commit 199a02d1e2

View File

@ -121,9 +121,11 @@ class DiscoverRunnerTest(TestCase):
""" """
Tests shouldn't be discovered twice when discovering on overlapping paths. Tests shouldn't be discovered twice when discovering on overlapping paths.
""" """
single = DiscoverRunner().build_suite(["gis_tests"]).countTestCases() base_app = 'gis_tests'
dups = DiscoverRunner().build_suite( sub_app = 'gis_tests.geo3d'
["gis_tests", "gis_tests.geo3d"]).countTestCases() with self.modify_settings(INSTALLED_APPS={'append': sub_app}):
single = DiscoverRunner().build_suite([base_app]).countTestCases()
dups = DiscoverRunner().build_suite([base_app, sub_app]).countTestCases()
self.assertEqual(single, dups) self.assertEqual(single, dups)
def test_reverse(self): def test_reverse(self):