(tempdir_factory, store, in_git_dir, cap_out)
| 60 | |
| 61 | |
| 62 | def test_gc_repo_not_cloned(tempdir_factory, store, in_git_dir, cap_out): |
| 63 | path = make_repo(tempdir_factory, 'script_hooks_repo') |
| 64 | write_config('.', make_config_from_repo(path)) |
| 65 | store.mark_config_used(C.CONFIG_FILE) |
| 66 | |
| 67 | assert _config_count(store) == 1 |
| 68 | assert _repo_count(store) == 0 |
| 69 | assert not gc(store) |
| 70 | assert _config_count(store) == 1 |
| 71 | assert _repo_count(store) == 0 |
| 72 | assert cap_out.get().splitlines()[-1] == '0 repo(s) removed.' |
| 73 | |
| 74 | |
| 75 | def test_gc_meta_repo_does_not_crash(store, in_git_dir, cap_out): |
nothing calls this directly
no test coverage detected