Enforce 95% Python SDK coverage in CI#52
Conversation
PR SummaryLow Risk Overview Test coverage is significantly expanded with new end-to-end local loop tests (configure → wrap → outbox → HTTP export) plus targeted edge/branch tests for async wrapping, canonicalization number/type handling, outbox transaction/chain-state behavior, exporter HTTP response handling, keypair load/write race cases, and signature verification failure modes. Reviewed by Cursor Bugbot for commit 2b6b84e. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1a4fa1d. Configure here.
1a4fa1d to
91d7b95
Compare
Add pytest-cov and a check-coverage script to the build workflow. Expand E2E and integration tests for wrap, outbox, export, and async paths so line coverage reaches the threshold. Signed-off-by: Nathan Gillett <nathan@intentproof.io>
91d7b95 to
2b6b84e
Compare

Summary
src/intentproof/viapytest-covandscripts/check-coverage.sh.HTTP export) plus targeted coverage for outbox transactions, async
wrap, keypair edge cases, and signing verification.
Test plan
pip install -e ".[dev]" && pytest -q(98.8% line coverage)bash ./scripts/check-coverage.sh 95