コード例 #1
0
def given_directory_branch(tmp_path: Path, directory: str,
                           branch: str) -> None:
    path = tmp_path / directory
    assert util.is_on_active_branch(path, branch)
コード例 #2
0
def given_directory_checked_out_branch(tmp_path: Path, directory: str,
                                       branch: str) -> None:
    path = tmp_path / directory
    util.checkout_branch(path, branch)
    assert util.is_on_active_branch(path, branch)
コード例 #3
0
def then_check_directory_start_branch(tmp_path: Path, directory: str, start_branch: str) -> None:
    path = tmp_path / directory
    assert util.is_on_active_branch(path, start_branch)