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)
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)
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)