def given_directory_branch(tmp_path: Path, directory: str, branch: str) -> None: path = tmp_path / directory assert util.is_on_active_branch(path, branch)
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)
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)