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

supabase / supabase-py / 43462763699
98%

Build:
DEFAULT BRANCH: main
Ran 13 Nov 2026 04:26PM UTC
Jobs 35
Files 152
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

13 Nov 2026 04:26PM UTC coverage: 97.968% (+0.02%) from 97.952%
43462763699

push

github

web-flow
fix(postgrest): port small v2 request fixes (#2050)

## Why

Four small postgrest request bugs that v2 already fixed, or that turned
up while auditing, are still in v3.

## What changed

- **Unknown count.** With `count="planned"` or `"estimated"`, PostgREST
can answer with `*` as the total in `Content-Range`. The response parser
called `int()` on it and raised `ValueError` after the write had
committed. It now returns no count, as v2 does (#1892).
- **`max_affected()` preferences.** Each call appended `handling=strict`
and `max-affected=` to `Prefer`, so calling it twice sent both twice. It
now drops earlier `handling=` and `max-affected=` preferences, including
ones packed into a comma-separated value, and keeps the others (#1827,
SDK-1704).
- **`base_url` check.** `is_http_url` existed but was never called, so a
client accepted `ftp://` or an empty URL and failed only at the first
request. `PostgrestClient.__init__` now raises `ValueError` for a URL
that is not http or https, or that has no host (#1881, SDK-1667).
- **No body on reads.** `select()` and `rpc(get=True)` or
`rpc(head=True)` sent `{}` with `Content-Type: application/json` on
`GET` and `HEAD`. `delete()` sent the same empty body.
`PostgrestRequest.finalize` now sends `GET`, `HEAD` and `DELETE` without
a body or content type. Writes with a payload still send their JSON
body.

## Tests

- `test_unknown_count.py`: the header parser and an insert with a `*/*`
total, for `planned` and `estimated`.
- `test_filter_builder.py`: `max_affected()` called twice, and replacing
an existing `handling=` preference. The existing test that expected a
duplicate `handling=strict` now expects one.
- `test_client_base_url.py`: the sync and async clients reject non-http
URLs and `http://` without a host, and accept http and https.
- `test_bodyless_requests.py`: select, head select, rpc GET, rpc HEAD
and delete send no body or content type. An insert still sends JSON.

The new tests fail without the source cha... (continued)

15817 of 16145 relevant lines covered (97.97%)

5.05 hits per line

Coverage Regressions

Lines Coverage ∆ File
16
96.84
0.05% src/postgrest/request_builder.py
Jobs
ID Job ID Ran Files Coverage
1 functions-py3.15-highest - 43462763699.1 13 Nov 2026 04:26PM UTC 14
99.12
GitHub Action Run
2 supabase-py3.12-lowest-direct - 43462763699.2 13 Nov 2026 04:27PM UTC 20
99.32
GitHub Action Run
3 functions-py3.12-lowest-direct - 43462763699.3 13 Nov 2026 04:26PM UTC 14
99.12
GitHub Action Run
4 supabase-py3.12-highest - 43462763699.4 13 Nov 2026 04:27PM UTC 20
99.32
GitHub Action Run
5 postgrest-py3.13-highest - 43462763699.5 13 Nov 2026 04:28PM UTC 48
98.97
GitHub Action Run
6 auth-py3.15-highest - 43462763699.6 13 Nov 2026 04:28PM UTC 43
96.77
GitHub Action Run
7 supabase-py3.14-highest - 43462763699.7 13 Nov 2026 04:26PM UTC 20
99.32
GitHub Action Run
8 realtime-py3.12-lowest-direct - 43462763699.8 13 Nov 2026 04:28PM UTC 10
97.51
GitHub Action Run
9 supabase-py3.15-highest - 43462763699.9 13 Nov 2026 04:28PM UTC 20
99.32
GitHub Action Run
10 functions-py3.14-highest - 43462763699.10 13 Nov 2026 04:26PM UTC 14
99.12
GitHub Action Run
11 auth-py3.14-highest - 43462763699.11 13 Nov 2026 04:28PM UTC 43
96.77
GitHub Action Run
12 storage-py3.15-highest - 43462763699.12 13 Nov 2026 04:29PM UTC 24
95.99
GitHub Action Run
13 storage-py3.13-highest - 43462763699.13 13 Nov 2026 04:28PM UTC 24
95.99
GitHub Action Run
14 realtime-py3.12-highest - 43462763699.14 13 Nov 2026 04:28PM UTC 10
97.51
GitHub Action Run
15 utils-py3.12-lowest-direct - 43462763699.15 13 Nov 2026 04:27PM UTC 24
99.67
GitHub Action Run
16 functions-py3.12-highest - 43462763699.16 13 Nov 2026 04:26PM UTC 14
99.12
GitHub Action Run
17 utils-py3.15-highest - 43462763699.17 13 Nov 2026 04:27PM UTC 24
99.67
GitHub Action Run
18 realtime-py3.15-highest - 43462763699.18 13 Nov 2026 04:28PM UTC 10
97.27
GitHub Action Run
19 realtime-py3.14-highest - 43462763699.19 13 Nov 2026 04:28PM UTC 10
97.27
GitHub Action Run
20 postgrest-py3.14-highest - 43462763699.20 13 Nov 2026 04:28PM UTC 48
98.96
GitHub Action Run
21 storage-py3.14-highest - 43462763699.21 13 Nov 2026 04:28PM UTC 24
95.99
GitHub Action Run
22 utils-py3.14-highest - 43462763699.22 13 Nov 2026 04:27PM UTC 24
99.67
GitHub Action Run
23 storage-py3.12-highest - 43462763699.23 13 Nov 2026 04:28PM UTC 24
95.99
GitHub Action Run
24 postgrest-py3.15-highest - 43462763699.24 13 Nov 2026 04:28PM UTC 48
98.96
GitHub Action Run
25 utils-py3.12-highest - 43462763699.25 13 Nov 2026 04:27PM UTC 24
99.67
GitHub Action Run
26 postgrest-py3.12-lowest-direct - 43462763699.26 13 Nov 2026 04:28PM UTC 48
98.97
GitHub Action Run
27 storage-py3.12-lowest-direct - 43462763699.27 13 Nov 2026 04:28PM UTC 24
95.99
GitHub Action Run
28 functions-py3.13-highest - 43462763699.28 13 Nov 2026 04:26PM UTC 14
99.12
GitHub Action Run
29 postgrest-py3.12-highest - 43462763699.29 13 Nov 2026 04:28PM UTC 48
98.97
GitHub Action Run
30 auth-py3.13-highest - 43462763699.30 13 Nov 2026 04:28PM UTC 43
96.77
GitHub Action Run
31 realtime-py3.13-highest - 43462763699.31 13 Nov 2026 04:28PM UTC 10
97.51
GitHub Action Run
32 auth-py3.12-highest - 43462763699.32 13 Nov 2026 04:28PM UTC 43
96.77
GitHub Action Run
33 auth-py3.12-lowest-direct - 43462763699.33 13 Nov 2026 04:28PM UTC 43
96.77
GitHub Action Run
34 supabase-py3.13-highest - 43462763699.34 13 Nov 2026 04:26PM UTC 20
99.32
GitHub Action Run
35 utils-py3.13-highest - 43462763699.35 13 Nov 2026 04:27PM UTC 24
99.67
GitHub Action Run
Source Files on build 43462763699
  • Tree
  • List 152
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43462763699
  • f13f7a3f on github
  • Prev Build on main (#43459907073)
  • Next Build on main (#43462995298)
  • 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