cli: Check in now for one account is named in notYet, beside the per-vendor check-ins (#4826)
TestEveryRouteHasACommandOrIsNamed was red on main sincee87140242added POST /api/usage/checkin-account (Settings' Check in now for one account) with neither a command in cliForRoute nor a notYet entry. No command checks in a single account: `magpie accounts checkin` checks in every account, and the per-vendor routes it covers (minimax-, plugin-, qoder-, trae-checkin) are already in notYet under stage 3, so this one joins them. Run atdfd3b720b(origin/main) on mote: go test -tags nogui -count=1 ./internal/cli/ ok (100.6s). Without this line the test fails with "POST /api/usage/checkin-account has no command" (the red on main, #4826). gofmt -l internal/cli clean. Not tried: nothing outside internal/cli; the change is a test-only map entry.
This commit is contained in:
@@ -374,6 +374,7 @@ var notYet = map[string]string{
|
||||
"GET /api/usage/quotas/history/holds": U, // usage.go
|
||||
"GET /api/usage/requests": U, // usage.go
|
||||
"GET /api/usage/requests/content": U, // usage.go
|
||||
"POST /api/usage/checkin-account": U, // usage.go: one account now; `magpie accounts checkin` does every account
|
||||
"POST /api/usage/clear": U, // usage.go
|
||||
"POST /api/usage/codex-reset": U, // usage.go
|
||||
"POST /api/usage/deleted": U, // usage.go
|
||||
|
||||
Reference in New Issue
Block a user