Files
Assistant/tests/delegated_continuity/attention_response_projection_test.go
m 21830a03e4
CI / test (push) Successful in 18s
CI / test (pull_request) Successful in 17s
DEV-000069 allow delegation continuation response outcomes
2026-08-17 20:48:44 +03:00

28 lines
649 B
Go

package delegatedcontinuity
import (
"os"
"path/filepath"
"strings"
"testing"
)
func TestAttentionResponseProjectionAllowsDelegationContinuationOutcomes(t *testing.T) {
path := filepath.Join("..", "..", "database", "migrations", "026_continuity_attention_response_outcomes.sql")
content, err := os.ReadFile(path)
if err != nil {
t.Fatalf("read migration: %v", err)
}
sql := string(content)
for _, want := range []string{
"attention_items_response_projection_check",
"'CONTINUED'",
"'REJECTED'",
"'CLARIFICATION_NEEDED'",
} {
if !strings.Contains(sql, want) {
t.Fatalf("migration %s must contain %s", path, want)
}
}
}