mirror of
https://github.com/django/django.git
synced 2025-09-05 18:20:55 +00:00
cater for running tests from another directory than tests - applying existing pattern to newly added test_testcase_ordering as well
This commit is contained in:
parent
e520a73eee
commit
d11e836203
1 changed files with 12 additions and 11 deletions
|
@ -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__,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue