| 1843 | |
| 1844 | |
| 1845 | def 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 | |
| 1871 | def test_get_plugin_specs_as_list() -> None: |