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

Method test_request_getmodulepath

testing/python/fixtures.py:965–969  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

963 )
964
965 def test_request_getmodulepath(self, pytester: Pytester) -> None:
966 modcol = pytester.getmodulecol("def test_somefunc(): pass")
967 (item,) = pytester.genitems([modcol])
968 req = fixtures.FixtureRequest(item, _ispytest=True)
969 assert req.path == modcol.path
970
971 def test_request_fixturenames(self, pytester: Pytester) -> None:
972 pytester.makepyfile(

Callers

nothing calls this directly

Calls 2

getmodulecolMethod · 0.45
genitemsMethod · 0.45

Tested by

no test coverage detected