Skip to content

Commit bc3eb4c

Browse files
tests: add test for local dev url
1 parent 61b15f0 commit bc3eb4c

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

Diff for: tests/test_dummy.py

-6
This file was deleted.

Diff for: tests/test_function_configuration.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import supabase
2+
3+
4+
def test_functions_client_initialization() -> None:
5+
ref = "ooqqmozurnggtljmjkii"
6+
url = f"https://{ref}.supabase.co"
7+
sp = supabase.Client(url, "testkey")
8+
func = sp.functions()
9+
assert sp.functions_url == f"https://{ref}.functions.supabase.co"
10+
11+
url = "https://localhost:54322"
12+
sp_local = supabase.Client(url, "testkey")
13+
assert sp_local.functions_url == f"{url}/functions/v1"

0 commit comments

Comments
 (0)