(pytester: pytest.Pytester)
| 92 | |
| 93 | |
| 94 | def test_fixturerequest_getmodulepath(pytester: pytest.Pytester) -> None: |
| 95 | modcol = pytester.getmodulecol("def test_somefunc(): pass") |
| 96 | (item,) = pytester.genitems([modcol]) |
| 97 | assert isinstance(item, pytest.Function) |
| 98 | req = TopRequest(item, _ispytest=True) |
| 99 | assert req.path == modcol.path |
| 100 | assert req.fspath == modcol.fspath # type: ignore[attr-defined] |
| 101 | |
| 102 | |
| 103 | class TestFixtureRequestSessionScoped: |
nothing calls this directly
no test coverage detected