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

Function test_modulecol_roundtrip

testing/python/collect.py:994–998  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

992
993
994def test_modulecol_roundtrip(pytester: Pytester) -> None:
995 modcol = pytester.getmodulecol("pass", withinit=False)
996 trail = modcol.nodeid
997 newcol = modcol.session.perform_collect([trail], genitems=0)[0]
998 assert modcol.name == newcol.name
999
1000
1001class TestTracebackCutting:

Callers

nothing calls this directly

Calls 2

perform_collectMethod · 0.80
getmodulecolMethod · 0.45

Tested by

no test coverage detected