Skip to content

test: cover payment method detokenization - #364

Merged
cbetta merged 1 commit into
mainfrom
test/cover-detokenize
Nov 27, 2026
Merged

cbetta merged 1 commit into
mainfrom
test/cover-detokenize

Conversation

@cbetta

@cbetta cbetta commented Nov 27, 2026

Copy link
Copy Markdown
Member

Covers the last unreached operation, detokenize_payment_method (endpoint coverage 120/121 → 121/121).

The test stores a card and calls payment_methods.detokenize through reach.reaches: 2xx or 4xx passes, 5xx or a non-HTTP error fails. A 4xx counts because the per-run merchant may have no public key to encrypt to, and the endpoint is rate limited.

e2e runs only on main, so PR CI does not execute this test; the scheduled run proves it.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cbetta
cbetta marked this pull request as ready for review November 27, 2026 10:24
Copilot AI lite review requested due to automatic review settings November 27, 2026 10:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The new E2E test relies on a remote rate-limited sandbox and live detokenization and merchant-key configuration, while PR CI skips it, so scheduled execution and human verification are required.

No open issues 🎉

What changed in this PR

Adds E2E reachability coverage for the previously unreached payment_methods.detokenize SDK operation, completing endpoint coverage from 120/121 to 121/121.

Changes:

  • Creates an approving payment method in the isolated merchant environment.
  • Calls payment_methods.detokenize through reach.reaches, accepting expected 4xx responses while failing on server or transport errors.
  • Documents why a successful 2xx response is not required in the mock-card environment.
File Description
tests/​processing/​test_payment_methods.py Adds an endpoint-reachability test for payment-method detokenization.

Review effort: Lite

@cbetta
cbetta merged commit 4ec8276 into main Nov 27, 2026
11 checks passed
@cbetta
cbetta deleted the test/cover-detokenize branch November 27, 2026 10:45
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.

2 participants