@@ -96,6 +96,7 @@ Rough roadmap:
96
96
- [ ] Remove references to GoTrue-js v1 and do a proper release
97
97
- [ ] Test and document common flows (e.g. sign in with OAuth, sign in with OTP)
98
98
- [ ] Add MFA methods and SSO methods
99
+ - [ ] Add Proof Key for Code Exchange (PKCE) methods
99
100
- [x] Wrap [ storage-py] ( https://github.com/supabase-community/storage-py )
100
101
- [ ] Support resumable uploads
101
102
- [ ] Setup testing environment
@@ -212,16 +213,14 @@ from supabase import create_client, Client
212
213
url: str = os.environ.get(" SUPABASE_TEST_URL" )
213
214
key: str = os.environ.get(" SUPABASE_TEST_KEY" )
214
215
supabase: Client = create_client(url, key)
215
- func = supabase.functions()
216
216
217
- @asyncio.coroutine
218
- async def test_func ( loop ) :
219
- resp = await func. invoke(" hello-world" ,invoke_options = {' body' :{}})
217
+ def test_func ():
218
+ try :
219
+ resp = supabase.functions. invoke(" hello-world" , invoke_options = {' body' :{}})
220
220
return resp
221
-
222
- loop = asyncio.get_event_loop()
223
- resp = loop.run_until_complete(test_func(loop))
224
- loop.close()
221
+ except (FunctionsRelayError, FunctionsHttpError) as exception:
222
+ err = exception.to_dict()
223
+ print (err.get(" message" ))
225
224
```
226
225
227
226
## Storage
0 commit comments