def test_meta_hook_passes(cap_out, store, repo_with_passing_hook): add_config_to_repo(repo_with_passing_hook, sample_meta_config()) _test_run( cap_out, store, repo_with_passing_hook, opts={}, expected_outputs=[b'Check for useless excludes'], expected_ret=0, stage=False, )
def test_gc_meta_repo_does_not_crash(store, in_git_dir, cap_out): write_config('.', sample_meta_config()) store.mark_config_used(C.CONFIG_FILE) assert not gc(store) assert cap_out.get().splitlines()[-1] == '0 repo(s) removed.'