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

Function TestCmdUpdateTaskRejectsSessionIDFlag

internal/app/update_test.go:53–60  ·  view source on GitHub ↗

TestCmdUpdateTaskRejectsSessionIDFlag pins that the legacy --session-id flag is gone — flag.Parse should reject it as undefined. Use `flow do --here` to attach a session to a task instead.

(t *testing.T)

Source from the content-addressed store, hash-verified

51// undefined. Use `flow do --here` to attach a session to a task
52// instead.
53func TestCmdUpdateTaskRejectsSessionIDFlag(t *testing.T) {
54 setupFlowRoot(t)
55 seedTask(t, "ut-no-sid-flag")
56 const sid = "11111111-2222-4333-8444-555555555555"
57 if rc := cmdUpdate([]string{"task", "ut-no-sid-flag", "--session-id", sid}); rc != 2 {
58 t.Errorf("rc=%d, want 2 for removed --session-id flag", rc)
59 }
60}
61
62func TestCmdUpdateTaskWorkDir(t *testing.T) {
63 setupFlowRoot(t)

Callers

nothing calls this directly

Calls 3

setupFlowRootFunction · 0.85
seedTaskFunction · 0.85
cmdUpdateFunction · 0.85

Tested by

no test coverage detected