MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_collect_pytest_prefix_bug

Function test_collect_pytest_prefix_bug

testing/test_config.py:1311–1319  ·  view source on GitHub ↗

Ensure we collect only actual functions from conftest files (#3775)

(pytestconfig)

Source from the content-addressed store, hash-verified

1309
1310
1311def 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
1322class TestRootdir:

Callers

nothing calls this directly

Calls 2

DummyClass · 0.85
parse_hookimpl_optsMethod · 0.80

Tested by

no test coverage detected