(t *testing.T)
| 275 | } |
| 276 | |
| 277 | func TestCmdUpdateTaskPriority(t *testing.T) { |
| 278 | setupFlowRoot(t) |
| 279 | seedTask(t, "ut-prio") |
| 280 | |
| 281 | if rc := cmdUpdate([]string{"task", "ut-prio", "--priority", "high"}); rc != 0 { |
| 282 | t.Fatalf("rc=%d", rc) |
| 283 | } |
| 284 | db := openFlowDB(t) |
| 285 | task, _ := flowdb.GetTask(db, "ut-prio") |
| 286 | if task.Priority != "high" { |
| 287 | t.Errorf("priority = %q, want high", task.Priority) |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | func TestCmdUpdateTaskPriorityInvalid(t *testing.T) { |
| 292 | setupFlowRoot(t) |
nothing calls this directly
no test coverage detected