Skip to content

Commit 17c1d6a

Browse files
authored
refactor: update test client to use fixture
1 parent e306249 commit 17c1d6a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Diff for: tests/test_client.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,10 @@ def test_client_insert(supabase: Client) -> None:
8383
assert result.get("status_code", 400) == 201
8484

8585

86-
def test_client_bucket():
86+
def test_client_bucket(supabase: Client) -> None:
8787

8888
"""Ensure that the storage bucket operations work"""
89-
from supabase_py import create_client, Client
90-
91-
url: str = os.environ.get("SUPABASE_TEST_URL")
92-
key: str = os.environ.get("SUPABASE_TEST_KEY")
9389
TEST_BUCKET_NAME = "atestbucket"
94-
supabase: Client = create_client(url, key)
9590
# TODO[Joel] - Reinstate once permissions on test instance are updated
9691
# storage = supabase.storage()
9792
# storage_bucket = storage.StorageBucketAPI()

0 commit comments

Comments
 (0)