(self, pytester: Pytester)
| 333 | |
| 334 | class TestFunction: |
| 335 | def test_getmodulecollector(self, pytester: Pytester) -> None: |
| 336 | item = pytester.getitem("def test_func(): pass") |
| 337 | modcol = item.getparent(pytest.Module) |
| 338 | assert isinstance(modcol, pytest.Module) |
| 339 | assert hasattr(modcol.obj, "test_func") |
| 340 | |
| 341 | @pytest.mark.filterwarnings("default") |
| 342 | def test_function_as_object_instance_ignored(self, pytester: Pytester) -> None: |