Kaydet (Commit) d11e8362 authored tarafından Nikolaus Schlemm's avatar Nikolaus Schlemm

cater for running tests from another directory than tests - applying existing…

cater for running tests from another directory than tests - applying existing pattern to newly added test_testcase_ordering as well
üst e520a73e
...@@ -104,6 +104,7 @@ class DiscoverRunnerTest(TestCase): ...@@ -104,6 +104,7 @@ class DiscoverRunnerTest(TestCase):
self.assertEqual(count, 0) self.assertEqual(count, 0)
def test_testcase_ordering(self): def test_testcase_ordering(self):
with change_cwd(".."):
suite = DiscoverRunner().build_suite(["test_discovery_sample/"]) suite = DiscoverRunner().build_suite(["test_discovery_sample/"])
self.assertEqual( self.assertEqual(
suite._tests[0].__class__.__name__, suite._tests[0].__class__.__name__,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment