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

supabase / supabase-py / 41997067215
98%

Build:
DEFAULT BRANCH: main
Ran 05 Nov 2026 08:46AM UTC
Jobs 42
Files 120
Run time 1min
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

05 Nov 2026 08:46AM UTC coverage: 94.886% (+0.4%) from 94.491%
41997067215

push

github

web-flow
test(utils): add unit tests, coverage in CI and a README (#1982)

Resolves SDK-2706.

`supabase_utils` is the shared HTTP layer every v3 package builds on.
Before this change it had no tests, its CI job only ran pyrefly, and its
README was empty.

## Changes

- **Tests** in `src/utils/tests`, covering 100% of the package:
- `Headers`: case insensitivity, repeated values, `override`, `update`,
immutability and `X-Client-Info`.
- `URLQuery`: repeated values, `merge`, immutability and encoding into a
`yarl.URL`.
- Request builders: URL and header merging, default and explicit
`Content-Type`, JSON bodies from dicts and pydantic models
(`exclude_none`), text, multipart encoding, and `Response.is_success` /
`is_error` bounds.
- Executor: `SyncHttpIO` and `AsyncHttpIO` with multi-request
generators, `delay`, methods that send no request and error propagation.
`handle_http_io` with both executors and its preserved name, docstring
and signature.
- Adapters: httpx through `httpx.MockTransport` (sync and async) and
aiohttp against a local `aiohttp.test_utils.TestServer`, including
closing the client when the context manager exits.
- **CI**: `utils` was already in the matrix, but `make utils.tests` only
ran pyrefly. It now runs pytest with coverage like the other packages,
and the Coveralls upload no longer skips `utils`
(`PACKAGES_WITHOUT_COVERAGE` is removed from `ci_matrix.py`).
- **Packaging**: a `tests` dependency group (pytest, pytest-cov,
pytest-asyncio), pytest configuration, and pyrefly now checks `tests` as
well.
- **README**: what the package is for, which extra to install, how the
generator based executor works, and how to write an adapter, with a
`requests` example.

## Found while testing, not changed here

- `QueryValue` includes `bool`, but yarl raises `TypeError` for bool
query values, so `URLQuery.from_mapping({"flag": True})` fails when the
request is finalized. No caller passes a bool today.
- `Headers.from_mapping` keeps only the last value o... (continued)

9165 of 9659 relevant lines covered (94.89%)

5.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 storage-py3.11-lowest-direct - 41997067215.1 05 Nov 2026 08:48AM UTC 22
93.18
GitHub Action Run
2 postgrest-py3.11-highest - 41997067215.2 05 Nov 2026 08:48AM UTC 24
97.51
GitHub Action Run
3 supabase-py3.12-highest - 41997067215.3 05 Nov 2026 08:46AM UTC 22
93.46
GitHub Action Run
4 realtime-py3.11-highest - 41997067215.4 05 Nov 2026 08:48AM UTC 8
95.88
GitHub Action Run
5 postgrest-py3.15-highest - 41997067215.5 05 Nov 2026 08:48AM UTC 24
97.5
GitHub Action Run
6 utils-py3.11-lowest-direct - 41997067215.6 05 Nov 2026 08:46AM UTC 17
99.36
GitHub Action Run
7 realtime-py3.12-highest - 41997067215.7 05 Nov 2026 08:48AM UTC 8
95.88
GitHub Action Run
8 supabase-py3.15-highest - 41997067215.8 05 Nov 2026 08:48AM UTC 22
93.43
GitHub Action Run
9 postgrest-py3.14-highest - 41997067215.9 05 Nov 2026 08:48AM UTC 24
97.5
GitHub Action Run
10 functions-py3.12-highest - 41997067215.10 05 Nov 2026 08:46AM UTC 14
97.48
GitHub Action Run
11 auth-py3.12-highest - 41997067215.11 05 Nov 2026 08:47AM UTC 36
91.55
GitHub Action Run
12 auth-py3.15-highest - 41997067215.12 05 Nov 2026 08:47AM UTC 36
91.52
GitHub Action Run
13 utils-py3.12-highest - 41997067215.13 05 Nov 2026 08:46AM UTC 17
99.36
GitHub Action Run
14 supabase-py3.11-lowest-direct - 41997067215.14 05 Nov 2026 08:46AM UTC 22
93.46
GitHub Action Run
15 realtime-py3.15-highest - 41997067215.15 05 Nov 2026 08:48AM UTC 8
95.34
GitHub Action Run
16 utils-py3.15-highest - 41997067215.16 05 Nov 2026 08:46AM UTC 17
99.34
GitHub Action Run
17 storage-py3.14-highest - 41997067215.17 05 Nov 2026 08:47AM UTC 22
93.16
GitHub Action Run
18 supabase-py3.11-highest - 41997067215.18 05 Nov 2026 08:46AM UTC 22
93.46
GitHub Action Run
19 realtime-py3.13-highest - 41997067215.19 05 Nov 2026 08:48AM UTC 8
95.88
GitHub Action Run
20 postgrest-py3.12-highest - 41997067215.20 05 Nov 2026 08:48AM UTC 24
97.51
GitHub Action Run
21 postgrest-py3.13-highest - 41997067215.21 05 Nov 2026 08:48AM UTC 24
97.51
GitHub Action Run
22 functions-py3.13-highest - 41997067215.22 05 Nov 2026 08:46AM UTC 14
97.48
GitHub Action Run
23 realtime-py3.11-lowest-direct - 41997067215.23 05 Nov 2026 08:48AM UTC 8
96.04
GitHub Action Run
24 utils-py3.14-highest - 41997067215.24 05 Nov 2026 08:46AM UTC 17
99.34
GitHub Action Run
25 realtime-py3.14-highest - 41997067215.25 05 Nov 2026 08:48AM UTC 8
95.34
GitHub Action Run
26 auth-py3.11-lowest-direct - 41997067215.26 05 Nov 2026 08:47AM UTC 36
91.55
GitHub Action Run
27 storage-py3.11-highest - 41997067215.27 05 Nov 2026 08:48AM UTC 22
93.18
GitHub Action Run
28 functions-py3.14-highest - 41997067215.28 05 Nov 2026 08:46AM UTC 14
97.48
GitHub Action Run
29 supabase-py3.13-highest - 41997067215.29 05 Nov 2026 08:46AM UTC 22
93.46
GitHub Action Run
30 storage-py3.13-highest - 41997067215.30 05 Nov 2026 08:48AM UTC 22
93.18
GitHub Action Run
31 storage-py3.12-highest - 41997067215.31 05 Nov 2026 08:48AM UTC 22
93.18
GitHub Action Run
32 auth-py3.13-highest - 41997067215.32 05 Nov 2026 08:47AM UTC 36
91.55
GitHub Action Run
33 storage-py3.15-highest - 41997067215.33 05 Nov 2026 08:48AM UTC 22
93.16
GitHub Action Run
34 supabase-py3.14-highest - 41997067215.34 05 Nov 2026 08:46AM UTC 22
93.43
GitHub Action Run
35 postgrest-py3.11-lowest-direct - 41997067215.35 05 Nov 2026 08:48AM UTC 24
97.51
GitHub Action Run
36 functions-py3.11-lowest-direct - 41997067215.36 05 Nov 2026 08:46AM UTC 14
97.48
GitHub Action Run
37 auth-py3.14-highest - 41997067215.37 05 Nov 2026 08:47AM UTC 36
91.52
GitHub Action Run
38 utils-py3.13-highest - 41997067215.38 05 Nov 2026 08:46AM UTC 17
99.36
GitHub Action Run
39 auth-py3.11-highest - 41997067215.39 05 Nov 2026 08:47AM UTC 36
91.55
GitHub Action Run
40 utils-py3.11-highest - 41997067215.40 05 Nov 2026 08:46AM UTC 17
99.36
GitHub Action Run
41 functions-py3.15-highest - 41997067215.41 05 Nov 2026 08:46AM UTC 14
97.48
GitHub Action Run
42 functions-py3.11-highest - 41997067215.42 05 Nov 2026 08:46AM UTC 14
97.48
GitHub Action Run
Source Files on build 41997067215
  • Tree
  • List 120
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41997067215
  • c2056b51 on github
  • Prev Build on main (#41996957888)
  • Next Build on main (#42004749490)
  • 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