MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / collect

Function collect

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

Source from the content-addressed store, hash-verified

261 test_classes = {item.getparent(pytest.Class) for item in items}
262
263 def collect(element):
264 for inst_or_fn in element.collect():
265 if isinstance(inst_or_fn, pytest.Collector):
266 yield from collect(inst_or_fn)
267 else:
268 yield inst_or_fn
269
270 def setup_test_classes():
271 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