(pytester: Pytester)
| 152 | |
| 153 | |
| 154 | def test_issue151_load_all_conftests(pytester: Pytester) -> None: |
| 155 | names = "code proj src".split() |
| 156 | for name in names: |
| 157 | p = pytester.mkdir(name) |
| 158 | p.joinpath("conftest.py").touch() |
| 159 | |
| 160 | pm = PytestPluginManager() |
| 161 | conftest_setinitial(pm, names) |
| 162 | assert len(set(pm.get_plugins()) - {pm}) == len(names) |
| 163 | |
| 164 | |
| 165 | def test_conftest_global_import(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected