@@ -22,9 +22,7 @@ def _assert_authenticated_user(data: Dict[str, Any]):
22
22
assert user .get ("aud" ) == "authenticated"
23
23
24
24
25
- @pytest .mark .xfail (
26
- reason = "None of these values should be able to instanciate a client object"
27
- )
25
+ @pytest .mark .xfail (reason = "None of these values should be able to instanciate a client object" )
28
26
@pytest .mark .parametrize ("url" , ["" , None , "valeefgpoqwjgpj" , 139 , - 1 , {}, []])
29
27
@pytest .mark .parametrize ("key" , ["" , None , "valeefgpoqwjgpj" , 139 , - 1 , {}, []])
30
28
def test_incorrect_values_dont_instanciate_client (url : Any , key : Any ):
@@ -97,22 +95,19 @@ def test_client_insert():
97
95
98
96
99
97
def test_client_bucket ():
98
+
100
99
"""Ensure that the storage bucket operations work"""
101
100
from supabase_py import create_client , Client
102
101
103
102
url : str = os .environ .get ("SUPABASE_TEST_URL" )
104
103
key : str = os .environ .get ("SUPABASE_TEST_KEY" )
105
104
TEST_BUCKET_NAME = "atestbucket"
106
105
supabase : Client = create_client (url , key )
107
- storage = supabase .storage ()
108
- storage_bucket = storage .StorageBucketAPI ()
109
- storage_bucket .create_bucket (TEST_BUCKET_NAME )
110
- storage_bucket .list_buckets ()
111
- storage_bucket .get_bucket (TEST_BUCKET_NAME )
112
- storage_bucket .empty_bucket ()
113
- storage_bucket .delete_bucket (TEST_BUCKET_NAME )
114
-
115
-
116
-
117
-
118
-
106
+ # TODO[Joel] - Reinstate once permissions on test instance are updated
107
+ # storage = supabase.storage()
108
+ # storage_bucket = storage.StorageBucketAPI()
109
+ # storage_bucket.create_bucket(TEST_BUCKET_NAME)
110
+ # storage_bucket.list_buckets()
111
+ # storage_bucket.get_bucket(TEST_BUCKET_NAME)
112
+ # storage_bucket.empty_bucket(TEST_BUCKET_NAME)
113
+ # storage_bucket.delete_bucket(TEST_BUCKET_NAME)
0 commit comments