#25110: A test in test_runner fails -----------------------------------+------------------------------------ Reporter: double-y | Owner: JMGordon Type: Bug | Status: assigned Component: Testing framework | Version: master Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+------------------------------------
Comment (by claudep): Maybe with that patch: {{{ #!diff diff --git a/tests/test_runner/test_discover_runner.py b/tests/test_runner/test_discover_runner.py index 70117f0..4a3613e 100644 --- a/tests/test_runner/test_discover_runner.py +++ b/tests/test_runner/test_discover_runner.py @@ -121,9 +121,11 @@ class DiscoverRunnerTest(TestCase): """ Tests shouldn't be discovered twice when discovering on overlapping paths. """ - single = DiscoverRunner().build_suite(["gis_tests"]).countTestCases() - dups = DiscoverRunner().build_suite( - ["gis_tests", "gis_tests.geo3d"]).countTestCases() + with self.modify_settings(INSTALLED_APPS={'append': 'gis_tests.geo3d'}): + suite = DiscoverRunner().build_suite(["gis_tests.geo3d", "gis_tests.geo3d"]) + single = DiscoverRunner().build_suite(["gis_tests"]).countTestCases() + dups = DiscoverRunner().build_suite( + ["gis_tests", "gis_tests.geo3d"]).countTestCases() self.assertEqual(single, dups) def test_reverse(self): }}} Joseph, still interested to test that and cook a patch? -- Ticket URL: <https://code.djangoproject.com/ticket/25110#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.0ca1c64fb13832a5182ffa3222459958%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.