MCPcopy Index your code
hub / github.com/StackStorm/st2 / pytest_collection_modifyitems

Function pytest_collection_modifyitems

conftest.py:75–90  ·  view source on GitHub ↗
(session, config, items: List[nodes.Node])

Source from the content-addressed store, hash-verified

73
74
75def pytest_collection_modifyitems(session, config, items: List[nodes.Node]):
76 group_count = config.getoption("test-group-count")
77 group_id = config.getoption("test-group")
78
79 if group_count < 1 or group_id < 0:
80 return
81
82 items[:] = get_group(items, group_count, group_id)
83
84 terminal_reporter = config.pluginmanager.get_plugin("terminalreporter")
85 terminal_writer = create_terminal_writer(config)
86 message = terminal_writer.markup(
87 "Running test group #{0} ({1} tests)\n".format(group_id, len(items)),
88 yellow=True,
89 )
90 terminal_reporter.write(message)

Callers

nothing calls this directly

Calls 3

get_groupFunction · 0.85
writeMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected