(pytester: pytest.Pytester)
| 7 | |
| 8 | |
| 9 | def test_item_fspath(pytester: pytest.Pytester) -> None: |
| 10 | pytester.makepyfile("def test_func(): pass") |
| 11 | items, hookrec = pytester.inline_genitems() |
| 12 | assert len(items) == 1 |
| 13 | (item,) = items |
| 14 | items2, hookrec = pytester.inline_genitems(item.nodeid) |
| 15 | (item2,) = items2 |
| 16 | assert item2.name == item.name |
| 17 | assert item2.fspath == item.fspath # type: ignore[attr-defined] |
| 18 | assert item2.path == item.path |
| 19 | |
| 20 | |
| 21 | def test_testdir_testtmproot(testdir: Testdir) -> None: |
nothing calls this directly
no test coverage detected