(tempdir_factory, store)
| 235 | |
| 236 | |
| 237 | def test_install_idempotent(tempdir_factory, store): |
| 238 | path = make_consuming_repo(tempdir_factory, 'script_hooks_repo') |
| 239 | with cwd(path): |
| 240 | assert install(C.CONFIG_FILE, store, hook_types=['pre-commit']) == 0 |
| 241 | assert install(C.CONFIG_FILE, store, hook_types=['pre-commit']) == 0 |
| 242 | |
| 243 | ret, output = _get_commit_output(tempdir_factory) |
| 244 | assert ret == 0 |
| 245 | NORMAL_PRE_COMMIT_RUN.assert_matches(output) |
| 246 | |
| 247 | |
| 248 | def _path_without_us(): |
nothing calls this directly
no test coverage detected