File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ url: str = os.environ.get("SUPABASE_TEST_URL")
132132key: str = os.environ.get(" SUPABASE_TEST_KEY" )
133133supabase: Client = create_client(url, key)
134134data = supabase.table(" countries" ).insert({" name" :" Germany" }).execute()
135- assert len (data.get( " data" , []) ) > 0
135+ assert len (data.data) > 0
136136```
137137
138138### Selection of Data
@@ -145,7 +145,7 @@ key: str = os.environ.get("SUPABASE_TEST_KEY")
145145supabase: Client = create_client(url, key)
146146data = supabase.table(" countries" ).select(" *" ).execute()
147147# Assert we pulled real data.
148- assert len (data.get( " data" , []) ) > 0
148+ assert len (data.data) > 0
149149```
150150
151151### Update of Data
@@ -156,7 +156,7 @@ from supabase import create_client, Client
156156url: str = os.environ.get(" SUPABASE_TEST_URL" )
157157key: str = os.environ.get(" SUPABASE_TEST_KEY" )
158158supabase: Client = create_client(url, key)
159- data = supabase.table(" countries" ).update({" country" : " Indonesia" , " capital_city" : " Jakarta" }).eq(" id" , " 1 " ).execute()
159+ data = supabase.table(" countries" ).update({" country" : " Indonesia" , " capital_city" : " Jakarta" }).eq(" id" , 1 ).execute()
160160```
161161
162162## Realtime Changes
You can’t perform that action at this time.
0 commit comments