MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / collect

Function collect

lib/sqlalchemy/testing/plugin/pytestplugin.py:262–267  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

260 test_classes = {item.getparent(pytest.Class) for item in items}
261
262 def collect(element):
263 for inst_or_fn in element.collect():
264 if isinstance(inst_or_fn, pytest.Collector):
265 yield from collect(inst_or_fn)
266 else:
267 yield inst_or_fn
268
269 def setup_test_classes():
270 for test_class in test_classes:

Callers 2

setup_test_classesFunction · 0.85
fnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected