Ensure we collect only actual functions from conftest files (#3775)
(pytestconfig)
| 1309 | |
| 1310 | |
| 1311 | def test_collect_pytest_prefix_bug(pytestconfig): |
| 1312 | """Ensure we collect only actual functions from conftest files (#3775)""" |
| 1313 | |
| 1314 | class Dummy: |
| 1315 | class pytest_something: |
| 1316 | pass |
| 1317 | |
| 1318 | pm = pytestconfig.pluginmanager |
| 1319 | assert pm.parse_hookimpl_opts(Dummy(), "pytest_something") is None |
| 1320 | |
| 1321 | |
| 1322 | class TestRootdir: |
nothing calls this directly
no test coverage detected