(pytester: Pytester)
| 140 | |
| 141 | |
| 142 | def test_issue151_load_all_conftests(pytester: Pytester) -> None: |
| 143 | names = "code proj src".split() |
| 144 | for name in names: |
| 145 | p = pytester.mkdir(name) |
| 146 | p.joinpath("conftest.py").touch() |
| 147 | |
| 148 | conftest = PytestPluginManager() |
| 149 | conftest_setinitial(conftest, names) |
| 150 | d = list(conftest._conftestpath2mod.values()) |
| 151 | assert len(d) == len(names) |
| 152 | |
| 153 | |
| 154 | def test_conftest_global_import(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected