Example #1
0
def given_cats_tracking_branch(tmp_path: Path, scenario_info: ScenarioInfo, test_branch: str) -> None:
    scenario_info.example = "cats"
    for name, repo in CATS_REPOS_DEFAULT.items():
        path = tmp_path / repo["path"]
        util.delete_remote_branch(path, test_branch)
        util.create_tracking_branch(path, test_branch)
        assert util.tracking_branch_exists(path, test_branch)
Example #2
0
def given_misc_init_herd(tmp_path: Path, misc_init_herd_version_https,
                         scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "misc"
    scenario_info.version = "https"
Example #3
0
def given_misc_init_herd(tmp_path: Path, misc_init_herd,
                         scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "misc"
Example #4
0
def given_cats_clowder_repo_symlink(tmp_path: Path, cats_clowder_repo_symlink,
                                    scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "cats"
Example #5
0
def given_cats_ambiguous_non_symlink_yaml_files(tmp_path: Path, cats_ambiguous_non_symlink_yaml_files,
                                                scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "cats"
Example #6
0
def given_cats_non_symlink_yml(tmp_path: Path, cats_non_symlink_yml, scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "cats"
Example #7
0
def given_cats_init_herd_ssh(tmp_path: Path, cats_init_herd_ssh, scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "cats"
    scenario_info.version = "ssh"
    scenario_info.protocol = "ssh"
Example #8
0
def given_cats_init_herd(tmp_path: Path, cats_init_herd, scenario_info: ScenarioInfo) -> None:
    scenario_info.example = "cats"
Example #9
0
def given_cats_no_local_branch(tmp_path: Path, scenario_info: ScenarioInfo, test_branch: str) -> None:
    scenario_info.example = "cats"
    for name, repo in CATS_REPOS_DEFAULT.items():
        path = tmp_path / repo["path"]
        util.delete_local_branch(path, test_branch)
        assert not util.local_branch_exists(path, test_branch)