Пример #1
0
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))
Пример #2
0
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))
Пример #3
0
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))
Пример #4
0
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))