(holder)
| 189 | |
| 190 | @pytest.mark.parametrize("holder", make_holder()) |
| 191 | def test_hookrecorder_basic(holder) -> None: |
| 192 | pm = PytestPluginManager() |
| 193 | pm.add_hookspecs(holder) |
| 194 | rec = HookRecorder(pm, _ispytest=True) |
| 195 | pm.hook.pytest_xyz(arg=123) |
| 196 | call = rec.popcall("pytest_xyz") |
| 197 | assert call.arg == 123 |
| 198 | assert call._name == "pytest_xyz" |
| 199 | pytest.raises(pytest.fail.Exception, rec.popcall, "abc") |
| 200 | pm.hook.pytest_xyz_noarg() |
| 201 | call = rec.popcall("pytest_xyz_noarg") |
| 202 | assert call._name == "pytest_xyz_noarg" |
| 203 | |
| 204 | |
| 205 | def test_makepyfile_unicode(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected