fix: templates on task descriptions (#1343)

This commit is contained in:
Juan Ignacio Donoso
2023-10-07 18:57:14 -03:00
committed by GitHub
parent dc77286282
commit 05755f3a52
3 changed files with 29 additions and 2 deletions

View File

@@ -828,6 +828,24 @@ func TestListCanListDescOnly(t *testing.T) {
}
}
func TestListDescInterpolation(t *testing.T) {
const dir = "testdata/list_desc_interpolation"
var buff bytes.Buffer
e := task.Executor{
Dir: dir,
Stdout: &buff,
Stderr: &buff,
}
require.NoError(t, e.Setup())
if _, err := e.ListTasks(task.ListOptions{ListOnlyTasksWithDescriptions: true}); err != nil {
t.Error(err)
}
assert.Contains(t, buff.String(), "bar")
}
func TestStatusVariables(t *testing.T) {
const dir = "testdata/status_vars"