MCPcopy Create free account
hub / github.com/pytest-dev/pytest-xdist / test_add_remove_node

Method test_add_remove_node

testing/test_dsession.py:249–260  ·  view source on GitHub ↗
(self, pytester: pytest.Pytester)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 6

add_nodeMethod · 0.95
add_node_collectionMethod · 0.95
scheduleMethod · 0.95
remove_nodeMethod · 0.95
LoadSchedulingClass · 0.90
MockNodeClass · 0.85

Tested by

no test coverage detected