Exemple #1
0
def given_directory_ahead_upstream_num_commits_test_branch(
        tmp_path: Path, directory: str, test_branch: str,
        number_commits: str) -> None:
    number_commits = int(number_commits)
    path = tmp_path / directory
    local = "HEAD"
    remote = f"origin/{test_branch}"
    assert util.has_no_commits_between_refs(path, local, remote)
    util.set_up_ahead(path, local, remote, number_commits)
Exemple #2
0
def then_directory_in_sync_with_upstream_test_branch(tmp_path: Path, directory: str, test_branch: str) -> None:
    path = tmp_path / directory
    assert util.has_no_commits_between_refs(path, "HEAD", f"origin/{test_branch}")