(self)
| 261 | ) |
| 262 | |
| 263 | def test_reorder_tests_random(self): |
| 264 | tests = self.make_tests() |
| 265 | # Choose a seed that shuffles both the classes and methods. |
| 266 | shuffler = Shuffler(seed=9) |
| 267 | reordered_tests = reorder_tests(tests, classes=[], shuffler=shuffler) |
| 268 | self.assertIsInstance(reordered_tests, collections.abc.Iterator) |
| 269 | self.assertTestNames( |
| 270 | reordered_tests, |
| 271 | expected=[ |
| 272 | "Tests2.test1", |
| 273 | "Tests2.test2", |
| 274 | "Tests1.test2", |
| 275 | "Tests1.test1", |
| 276 | ], |
| 277 | ) |
| 278 | |
| 279 | def test_reorder_tests_random_mixed_classes(self): |
| 280 | tests = self.make_tests() |
nothing calls this directly
no test coverage detected