Skip to content

Commit 0cf02da

Browse files
committed
session scope for pytest client fixture
1 parent e1c3b90 commit 0cf02da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from supabase_py import Client, create_client
88

99

10-
@pytest.fixture(scope="function")
10+
@pytest.fixture(scope="session")
1111
def supabase() -> Client:
1212
url: str = os.environ.get("SUPABASE_TEST_URL")
1313
key: str = os.environ.get("SUPABASE_TEST_KEY")

Diff for: tests/test_dummy.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"""
1010

1111

12-
def test_dummy():
12+
def test_dummy() -> None:
1313
# Test auth component
1414
assert True == True
1515

1616

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

0 commit comments

Comments
 (0)