(self, pytester: pytest.Pytester)
| 247 | assert not sched.pending |
| 248 | |
| 249 | def test_add_remove_node(self, pytester: pytest.Pytester) -> None: |
| 250 | config = pytester.parseconfig("--tx=popen") |
| 251 | sched = LoadScheduling(config) |
| 252 | node = MockNode() |
| 253 | sched.add_node(node) |
| 254 | collection = ["test_file.py::test_func"] |
| 255 | sched.add_node_collection(node, collection) |
| 256 | assert sched.collection_is_completed |
| 257 | sched.schedule() |
| 258 | assert not sched.pending |
| 259 | crashitem = sched.remove_node(node) |
| 260 | assert crashitem == collection[0] |
| 261 | |
| 262 | def test_different_tests_collected(self, pytester: pytest.Pytester) -> None: |
| 263 | """ |
nothing calls this directly
no test coverage detected