1
0
mirror of https://github.com/django/django.git synced 2025-02-26 02:04:52 +00:00

Merge pull request #2657 from nschlemm/20140516-test_testcase_ordering

cater for running tests from another directory than tests
This commit is contained in:
Marc Tamlyn 2014-05-16 12:30:39 +02:00
commit 4a98130735

View File

@ -104,6 +104,7 @@ class DiscoverRunnerTest(TestCase):
self.assertEqual(count, 0)
def test_testcase_ordering(self):
with change_cwd(".."):
suite = DiscoverRunner().build_suite(["test_discovery_sample/"])
self.assertEqual(
suite._tests[0].__class__.__name__,