示例#1
0
def given_created_git_dir_in_dir(tmp_path: Path, directory: str) -> None:
    path = tmp_path / directory
    util.run_command("git clone https://github.com/JrGoodle/cats.git", path)
    cats_dir = path / "cats"
    assert cats_dir.exists()
    assert cats_dir.is_dir()
    assert util.has_git_directory(cats_dir)
示例#2
0
def given_test_dir_is_git_repo(tmp_path: Path, test_directory: str) -> None:
    path = tmp_path / test_directory
    assert path.exists()
    assert path.is_dir()
    assert util.has_git_directory(path)
示例#3
0
def then_project_dir_is_not_git_repo(tmp_path: Path, directory: str) -> None:
    path = tmp_path / directory
    assert path.exists()
    assert path.is_dir()
    assert not util.has_git_directory(path)