INNER CODE UNIT · Go
TestBatchProjectFailsIfUnableToFindProject
miniscruff/changie · cmd/batch_test.go:120
func TestBatchProjectFailsIfUnableToFindProject(t *testing.T) {
cfg := batchTestConfig()
cfg.Projects = []core.ProjectConfig{
{
Label: "A",
Key: "a",
},
}
then.WithTempDirConfig(t, cfg)
batch := NewBatch(time.Now, core.NewTemplateCache())
batch.Project = "not found"
err := batch.Run(batch.Command, []string{"v0.2.0"})
then.NotNil(t, err)
}