Skip to content

Commit

Permalink
session scope for pytest client fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice committed May 19, 2021
1 parent e1c3b90 commit 0cf02da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from supabase_py import Client, create_client


@pytest.fixture(scope="function")
@pytest.fixture(scope="session")
def supabase() -> Client:
url: str = os.environ.get("SUPABASE_TEST_URL")
key: str = os.environ.get("SUPABASE_TEST_KEY")
Expand Down
4 changes: 2 additions & 2 deletions tests/test_dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"""


def test_dummy():
def test_dummy() -> None:
# Test auth component
assert True == True


def test_client_initialziation():
def test_client_initialziation() -> None:
client = supabase_py.Client("http://testwebsite.com", "atestapi")

0 comments on commit 0cf02da

Please sign in to comment.