MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestCmdUpdateProjectPriorityInvalid

Function TestCmdUpdateProjectPriorityInvalid

internal/app/update_test.go:347–356  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

345}
346
347func 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
358func TestCmdUpdateProjectRequiresFlag(t *testing.T) {
359 setupFlowRoot(t)

Callers

nothing calls this directly

Calls 3

setupFlowRootFunction · 0.85
cmdAddFunction · 0.85
cmdUpdateFunction · 0.85

Tested by

no test coverage detected