(tempdir_factory, store, caplog)
| 216 | |
| 217 | |
| 218 | def test_reinstall(tempdir_factory, store, caplog): |
| 219 | path = make_repo(tempdir_factory, 'python_hooks_repo') |
| 220 | config = make_config_from_repo(path) |
| 221 | _get_hook(config, store, 'foo') |
| 222 | # We print some logging during clone (1) + install (3) |
| 223 | assert len(caplog.record_tuples) == 4 |
| 224 | caplog.clear() |
| 225 | # Reinstall on another run should not trigger another install |
| 226 | _get_hook(config, store, 'foo') |
| 227 | assert len(caplog.record_tuples) == 0 |
| 228 | |
| 229 | |
| 230 | def test_control_c_control_c_on_install(tempdir_factory, store): |
nothing calls this directly
no test coverage detected