• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-py / 41644999038 / 28
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 01:33PM UTC
Files 41
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Nov 2026 01:30PM UTC coverage: 99.502% (+1.7%) from 97.822%
41644999038.28

push

github

web-flow
test: raise coverage across auth, storage, realtime, postgrest and supabase (#1931)

## What

Adds tests to the least-covered areas of supabase-py. No library code
changes.

Overall line coverage of library code (`--cov=src`, sync and async
trees, with local infra) goes from about 91.3% to 98.6%:

| Package   | Before | After |
| --------- | ------ | ----- |
| auth      | 89%    | 98%   |
| storage   | 91%    | 99%   |
| postgrest | 94%    | 99%   |
| realtime  | 92%    | 98%   |
| supabase  | 92%    | 98%   |
| functions | 99%    | 99%   |

## Tests added

All new tests mock HTTP with `httpx.MockTransport`, or mock the
websocket connection, so none of them need infra.

- `src/storage/tests/test_vectors.py`: every vector bucket, index and
vector operation (request paths, request bodies, omitted optional
fields, the `delete` batch size limit, API error parsing), plus
analytics bucket create, list and delete, and the missing-`pyiceberg`
error. Runs against both the sync and async clients.
- `src/auth/tests/_async/test_client_flows.py`: `initialize` from
implicit grant URLs (query and fragment, recovery, error redirects,
incomplete redirects), restoring and refreshing stored sessions, ID
token, SSO and OAuth sign-in (including PKCE), code exchange, identity
linking, reauthentication, MFA enroll, challenge, verify, unenroll and
list, the "requires a session" errors, API error mapping, and pagination
headers when listing OAuth clients.
- `src/auth/tests/_async/test_jwks_and_refresh.py`: `get_claims` with
real ES256 keys (JWKS caching and TTL, supplied JWKS, unknown key, empty
JWKS, forged signature), retry scheduling on network errors, and the
PKCE email change in `update_user`.
- `src/realtime/tests/test_client_channels.py` and
`test_channel_internals.py`: channel creation, replacement and removal,
`set_auth`, send buffering, presence state and diff handling, join reply
handling for postgres changes bindings, `join()`, the listen loop,
connect retries and... (continued)

3399 of 3416 relevant lines covered (99.5%)

1.0 hits per line

Source Files on job run-ubuntu-latest-3.15-postgrest - 41644999038.28
  • Tree
  • List 41
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41644999038
  • 427b45be on github
  • Prev Job for on main (#41644902937.26)
  • Next Job for on main (#41645093163.30)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc