(t *testing.T)
| 345 | } |
| 346 | |
| 347 | func TestCmdUpdateProjectPriorityInvalid(t *testing.T) { |
| 348 | setupFlowRoot(t) |
| 349 | wd := t.TempDir() |
| 350 | if rc := cmdAdd([]string{"project", "Bad", "--slug", "up-bad", "--work-dir", wd}); rc != 0 { |
| 351 | t.Fatalf("seed rc=%d", rc) |
| 352 | } |
| 353 | if rc := cmdUpdate([]string{"project", "up-bad", "--priority", "urgent"}); rc != 2 { |
| 354 | t.Errorf("rc=%d, want 2", rc) |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | func TestCmdUpdateProjectRequiresFlag(t *testing.T) { |
| 359 | setupFlowRoot(t) |
nothing calls this directly
no test coverage detected