From 88fc1a797ef7d848bd2e870ddadcf8d51d405989 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Wed, 25 Oct 2023 19:37:05 +0000 Subject: [PATCH] chore: update readme with correct function call --- README.md | 4 ++-- pyproject.toml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 841282c..9fc0a8e 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,9 @@ Deploy your function as per documentation. ```python3 import asyncio -from supafunc import FunctionsClient +from supafunc import AsyncFunctionsClient async def run_func(): - fc = FunctionsClient("https://.functions.supabase.co", {}) + fc = AsyncFunctionsClient("https://.functions.supabase.co", {}) res = await fc.invoke("payment-sheet", {"responseType": "json"}) if __name__ == "__main__": diff --git a/pyproject.toml b/pyproject.toml index a01d448..1ec7d7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,6 +36,9 @@ upload_to_vcs_release = true branch = "main" changelog_components = "semantic_release.changelog.changelog_headers,semantic_release.changelog.compare_url" +[tool.pytest.ini_options] +asyncio_mode = "auto" + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"