(store, in_git_dir, cap_out)
| 135 | |
| 136 | |
| 137 | def test_gc_deletes_invalid_configs(store, in_git_dir, cap_out): |
| 138 | config = {'i am': 'invalid'} |
| 139 | write_config('.', config) |
| 140 | store.mark_config_used(C.CONFIG_FILE) |
| 141 | |
| 142 | assert _config_count(store) == 1 |
| 143 | assert not gc(store) |
| 144 | assert _config_count(store) == 0 |
| 145 | assert cap_out.get().splitlines()[-1] == '0 repo(s) removed.' |
| 146 | |
| 147 | |
| 148 | def test_invalid_manifest_gcd(tempdir_factory, store, in_git_dir, cap_out): |
nothing calls this directly
no test coverage detected