Skip to content

Commit

Permalink
remove asyncio-pytest module, and add working test
Browse files Browse the repository at this point in the history
  • Loading branch information
fedden committed Apr 1, 2021
1 parent 30042a9 commit 7ca1582
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def test_client_auth():
_assert_authenticated_user(user)


@pytest.mark.asyncio
async def test_client_select():
def test_client_select():
"""Ensure we can select data from a table."""
from supabase_py import create_client, Client

Expand All @@ -66,8 +65,6 @@ async def test_client_select():
supabase: Client = create_client(url, key)
# TODO(fedden): Add this set back in (and expand on it) when postgrest and
# realtime libs are working.
query = supabase.table("countries").select("*")
import ipdb

ipdb.set_trace()
data = await query.execute()
data = supabase.table("countries").select("*").execute()
# Assert we pulled real data.
assert len(data.get("data", [])) > 0

0 comments on commit 7ca1582

Please sign in to comment.