Skip to content

Commit 7ca1582

Browse files
committed
remove asyncio-pytest module, and add working test
1 parent 30042a9 commit 7ca1582

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/test_client.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ def test_client_auth():
5656
_assert_authenticated_user(user)
5757

5858

59-
@pytest.mark.asyncio
60-
async def test_client_select():
59+
def test_client_select():
6160
"""Ensure we can select data from a table."""
6261
from supabase_py import create_client, Client
6362

@@ -66,8 +65,6 @@ async def test_client_select():
6665
supabase: Client = create_client(url, key)
6766
# TODO(fedden): Add this set back in (and expand on it) when postgrest and
6867
# realtime libs are working.
69-
query = supabase.table("countries").select("*")
70-
import ipdb
71-
72-
ipdb.set_trace()
73-
data = await query.execute()
68+
data = supabase.table("countries").select("*").execute()
69+
# Assert we pulled real data.
70+
assert len(data.get("data", [])) > 0

0 commit comments

Comments
 (0)