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