Skip to content

test: add coverage for Supabase client service URLs - #1819

Merged
spydon merged 2 commits into
supabase:mainfrom
Asmit-08:test/client-service-url-coverage
Oct 28, 2026
Merged

spydon merged 2 commits into
supabase:mainfrom
Asmit-08:test/client-service-url-coverage

Conversation

@Asmit-08

Copy link
Copy Markdown
Contributor

Summary

Add test coverage for the Supabase client's rest_url, auth_url, and storage_url.

Keep the new assertions in a separate test function.

Testing

uv run --frozen --package supabase pytest src/supabase/tests/test_function_configuration.py -v

Result: 2 tests passed.

git diff --check passed.

Motivation

The existing test file covered the Functions and Realtime URLs. This change adds assertions for the REST, Auth, and Storage URLs.

Note: This change adds test coverage and does not modify production code.

@Asmit-08
Asmit-08 requested a review from o-santi as a code owner October 23, 2026 07:06
@spydon
spydon merged commit 3148147 into supabase:main Oct 28, 2026
42 checks passed
spydon added a commit that referenced this pull request Oct 28, 2026
## Summary

Running `make ruff` on `main` reformats two files, so every contributor
who runs it picks up unrelated changes.

- `src/supabase/tests/test_function_configuration.py`: a blank line with
trailing whitespace, a missing blank line between functions, and no
newline at the end of the file (from #1819).
- `src/auth/src/supabase_auth/_sync/gotrue_client.py`: #1569 added a
paragraph to the `get_user()` docstring by editing the generated `_sync`
file directly, with trailing whitespace. The async source never got the
paragraph. This adds it to `_async/gotrue_client.py` and regenerates
`_sync` with `make auth.build-sync`, so both trees match again and the
whitespace is gone.

After this, `ruff format --check` and `ruff check` pass on the whole
repository. A follow-up PR adds those checks to CI.
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