Repository navigation
test: add coverage for Supabase client service URLs - #1819
Merged
Merged
Conversation
spydon
approved these changes
Oct 28, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.