diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-07 23:49:54 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-08 04:41:35 +0000 |
| commit | f78d7f2aa5d07c8ac7ba65f87fe66ea21bc1075a (patch) | |
| tree | 9a24bf8353a6498c964080d665079b36cf2f0bc7 /internal/task/validator_test.go | |
| parent | cad057fd64fbf44f953bc2784f70ce344f3389cf (diff) | |
test(task): update validator and parser tests to use AgentConfig
Diffstat (limited to 'internal/task/validator_test.go')
| -rw-r--r-- | internal/task/validator_test.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/internal/task/validator_test.go b/internal/task/validator_test.go index 967eed3..5678a00 100644 --- a/internal/task/validator_test.go +++ b/internal/task/validator_test.go @@ -9,7 +9,8 @@ func validTask() *Task { return &Task{ ID: "test-id", Name: "Valid Task", - Claude: ClaudeConfig{ + Agent: AgentConfig{ + Type: "claude", Instructions: "do something", WorkingDir: "/tmp", }, @@ -39,7 +40,7 @@ func TestValidate_MissingName_ReturnsError(t *testing.T) { func TestValidate_MissingInstructions_ReturnsError(t *testing.T) { task := validTask() - task.Claude.Instructions = "" + task.Agent.Instructions = "" err := Validate(task) if err == nil { t.Fatal("expected error") @@ -51,7 +52,7 @@ func TestValidate_MissingInstructions_ReturnsError(t *testing.T) { func TestValidate_NegativeBudget_ReturnsError(t *testing.T) { task := validTask() - task.Claude.MaxBudgetUSD = -1.0 + task.Agent.MaxBudgetUSD = -1.0 err := Validate(task) if err == nil { t.Fatal("expected error") @@ -87,7 +88,7 @@ func TestValidate_InvalidPriority_ReturnsError(t *testing.T) { func TestValidate_InvalidPermissionMode_ReturnsError(t *testing.T) { task := validTask() - task.Claude.PermissionMode = "yolo" + task.Agent.PermissionMode = "yolo" err := Validate(task) if err == nil { t.Fatal("expected error") |
