Skip to content

Re-enable the funnel and flow live tests - #35

Merged
yosriady merged 1 commit into
mainfrom
test/reenable-funnel-flow-live
Aug 3, 2026
Merged

Re-enable the funnel and flow live tests#35
yosriady merged 1 commit into
mainfrom
test/reenable-funnel-flow-live

Conversation

@yosriady

@yosriady yosriady commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Why

Both tests were it.skiped with a comment saying /v0/funnel and /v0/flow only accepted camelCase dateFrom/dateTo, so the CLI's snake_case call would return a 400. That is no longer true — the pipes were unified API-side, and openapi.json has documented date_from/date_to for both for a while now.

Verified live against api.formo.so with a fresh read-scoped key:

  • analytics funnel --date-from 2026-06-01 --date-to 2026-07-31 → 23,127 users at step 1
  • analytics flow --date-from 2026-06-01 --date-to 2026-07-31 → 156 transitions

Impact

While skipped, the CLI's snake_case behaviour was covered only by a unit test asserting what it sends — nothing verified the API still accepts it. Re-enabled, these two guard against a regression to camelCase-only.

Suite goes from 189 passing / 3 pending to 191 passing / 1 pending. The one remaining skip is the wallet-import write test, which is deliberately gated behind an opt-in flag.

Note on CI

These live tests only run when TEST_TOKEN is valid. The repo secret is currently rejected with a 401, so CI has been skipping the whole live suite — it needs refreshing for this PR to actually exercise anything on CI.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Both were `it.skip`ed on the grounds that /v0/funnel and /v0/flow only
accepted camelCase dateFrom/dateTo, so a snake_case call would 400. That
is no longer true — the pipes were unified API-side. Verified live against
api.formo.so: funnel returns 23,127 users and flow returns 156 transitions
for snake_case date_from/date_to.

Leaving them skipped meant the CLI's snake_case behaviour was only covered
by a unit test asserting what it sends, with nothing checking the API still
accepts it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@yosriady
yosriady merged commit 34ca0de into main Aug 3, 2026
7 checks passed
@yosriady
yosriady deleted the test/reenable-funnel-flow-live branch August 3, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant