MCPcopy
hub / github.com/pytest-dev/pytest / test_load_initial_conftest_last_ordering

Function test_load_initial_conftest_last_ordering

testing/test_config.py:1845–1868  ·  view source on GitHub ↗
(_config_for_test)

Source from the content-addressed store, hash-verified

1843
1844
1845def test_load_initial_conftest_last_ordering(_config_for_test):
1846 pm = _config_for_test.pluginmanager
1847
1848 class My:
1849 def pytest_load_initial_conftests(self):
1850 pass
1851
1852 m = My()
1853 pm.register(m)
1854 hc = pm.hook.pytest_load_initial_conftests
1855 hookimpls = [
1856 (
1857 hookimpl.function.__module__,
1858 "wrapper" if (hookimpl.wrapper or hookimpl.hookwrapper) else "nonwrapper",
1859 )
1860 for hookimpl in hc.get_hookimpls()
1861 ]
1862 assert hookimpls == [
1863 ("_pytest.config", "nonwrapper"),
1864 (m.__module__, "nonwrapper"),
1865 ("_pytest.legacypath", "nonwrapper"),
1866 ("_pytest.capture", "wrapper"),
1867 ("_pytest.warnings", "wrapper"),
1868 ]
1869
1870
1871def test_get_plugin_specs_as_list() -> None:

Callers

nothing calls this directly

Calls 2

MyClass · 0.85
registerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…