def test_verify_project_dir_when_project_exist_but_not_updating( tmpfolder, git_mock): tmpfolder.ensure("my-project", dir=True) with pytest.raises(DirectoryAlreadyExists): verify_project_dir({}, dict(project="my-project", update=False, force=False))
def test_verify_project_dir_when_project_exist_but_not_updating( tmpfolder, git_mock): tmpfolder.ensure("my-project", dir=True) with pytest.raises(DirectoryAlreadyExists): verify_project_dir({}, dict(project="my-project", update=False, force=False))
def test_verify_project_dir_when_project_doesnt_exist_and_updating( tmpfolder, git_mock): with pytest.raises(DirectoryDoesNotExist): verify_project_dir({}, dict(project="my-project", update=True))
def test_verify_project_dir_when_project_doesnt_exist_and_updating( tmpfolder, git_mock): with pytest.raises(DirectoryDoesNotExist): verify_project_dir({}, dict(project="my-project", update=True))