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

Method get_collected_names

testing/test_mark.py:903–907  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

901 )
902
903 def get_collected_names(*args):
904 _, rec = pytester.inline_genitems(*args)
905 calls = rec.getcalls("pytest_collection_finish")
906 assert len(calls) == 1
907 return [x.name for x in calls[0].session.items]
908
909 # sanity check: collect both tests in normal runs
910 assert get_collected_names() == ["test_aaa", "test_ddd"]

Callers

nothing calls this directly

Calls 2

getcallsMethod · 0.80
inline_genitemsMethod · 0.45

Tested by

no test coverage detected