Skip to content

Commit

Permalink
Update test_function_configuration.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rawandahmad698 committed Oct 21, 2022
1 parent 7ca812b commit 84b7a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_function_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ def test_functions_client_initialization() -> None:
url = f"https://{ref}.supabase.co"
# Sample JWT Key
key = "xxxxxxxxxxxxxx.xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxx"
sp = supabase.SupabaseClient(url, key)
sp = supabase.Client(url, "testkey")
sp.functions()
assert sp.functions_url == f"https://{ref}.functions.supabase.co"

url = "https://localhost:54322"
sp_local = supabase.SupabaseClient(url, key)
sp_local = supabase.Client(url, "testkey")
assert sp_local.functions_url == f"{url}/functions/v1"

0 comments on commit 84b7a71

Please sign in to comment.