Esempio n. 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))
Esempio n. 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))
Esempio n. 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))
Esempio n. 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))