Skip to content

Commit 71fae8b

Browse files
author
Joel Lee
committed
tests: update test instance
1 parent 6469ad5 commit 71fae8b

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
2-
SUPABASE_TEST_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYxMjYwOTMyMiwiZXhwIjoxOTI4MTg1MzIyfQ.XL9W5I_VRQ4iyQHVQmjG0BkwRfx6eVyYB3uAKcesukg" \
3-
SUPABASE_TEST_URL="https://tfsatoopsijgjhrqplra.supabase.co" \
2+
SUPABASE_TEST_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYzNTAwODQ4NywiZXhwIjoxOTUwNTg0NDg3fQ.l8IgkO7TQokGSc9OJoobXIVXsOXkilXl4Ak6SCX5qI8" \
3+
SUPABASE_TEST_URL="https://ibrydvrsxoapzgtnhpso.supabase.co" \
44
poetry run pytest

tests/test_client.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ def test_client_bucket(supabase: Client) -> None:
8989

9090
"""Ensure that the storage bucket operations work"""
9191
TEST_BUCKET_NAME = "atestbucket"
92-
# TODO[Joel] - Reinstate once permissions on test instance are updated
93-
# storage = supabase.storage()
94-
# storage_bucket = storage.StorageBucketAPI()
95-
# storage_bucket.create_bucket(TEST_BUCKET_NAME)
96-
# storage_bucket.list_buckets()
97-
# storage_bucket.get_bucket(TEST_BUCKET_NAME)
98-
# storage_bucket.empty_bucket(TEST_BUCKET_NAME)
99-
# storage_bucket.delete_bucket(TEST_BUCKET_NAME)
92+
storage = supabase.storage()
93+
storage_bucket = storage.StorageBucketAPI()
94+
storage_bucket.create_bucket(TEST_BUCKET_NAME)
95+
storage_bucket.list_buckets()
96+
storage_bucket.get_bucket(TEST_BUCKET_NAME)
97+
storage_bucket.empty_bucket(TEST_BUCKET_NAME)
98+
storage_bucket.delete_bucket(TEST_BUCKET_NAME)

0 commit comments

Comments
 (0)