(self, pytester: Pytester)
| 1268 | assert item.location == ("ABCDE", 42, "custom") |
| 1269 | |
| 1270 | def test_func_reportinfo(self, pytester: Pytester) -> None: |
| 1271 | item = pytester.getitem("def test_func(): pass") |
| 1272 | path, lineno, modpath = item.reportinfo() |
| 1273 | assert os.fspath(path) == str(item.path) |
| 1274 | assert lineno == 0 |
| 1275 | assert modpath == "test_func" |
| 1276 | |
| 1277 | def test_class_reportinfo(self, pytester: Pytester) -> None: |
| 1278 | modcol = pytester.getmodulecol( |
nothing calls this directly
no test coverage detected