MCPcopy
hub / github.com/django/django / test_reorder_test_bin_reverse

Method test_reorder_test_bin_reverse

tests/test_runner/tests.py:192–204  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

190 )
191
192 def test_reorder_test_bin_reverse(self):
193 tests = self.make_tests()
194 reordered_tests = reorder_test_bin(tests, reverse=True)
195 self.assertIsInstance(reordered_tests, collections.abc.Iterator)
196 self.assertTestNames(
197 reordered_tests,
198 expected=[
199 "Tests2.test2",
200 "Tests2.test1",
201 "Tests1.test2",
202 "Tests1.test1",
203 ],
204 )
205
206 def test_reorder_test_bin_random(self):
207 tests = self.make_tests()

Callers

nothing calls this directly

Calls 3

make_testsMethod · 0.95
assertTestNamesMethod · 0.95
reorder_test_binFunction · 0.90

Tested by

no test coverage detected