(self, pytester: Pytester)
| 265 | |
| 266 | class TestFunction: |
| 267 | def test_getmodulecollector(self, pytester: Pytester) -> None: |
| 268 | item = pytester.getitem("def test_func(): pass") |
| 269 | modcol = item.getparent(pytest.Module) |
| 270 | assert isinstance(modcol, pytest.Module) |
| 271 | assert hasattr(modcol.obj, "test_func") |
| 272 | |
| 273 | @pytest.mark.filterwarnings("default") |
| 274 | def test_function_as_object_instance_ignored(self, pytester: Pytester) -> None: |