Skip to content

Commit 3186566

Browse files
committed
add basic client test
Trying to figure out what is causing deprecation warning, but the warning message is very unhelpful...
1 parent b61d846 commit 3186566

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_demo.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ def clerk_client() -> Iterator[Clerk]:
5050
yield client
5151

5252

53+
def test_clerk_client(clerk_client: Clerk):
54+
"""Really basic test that the clerk client is working."""
55+
# NOTE: Getting a deprecation warning here, but not sure why...
56+
# Warning message is not helpful.
57+
existing = clerk_client.users.list(request={"email_address": [TEST_EMAIL]})
58+
assert existing is not None
59+
60+
5361
@pytest.fixture
5462
def create_test_user(clerk_client: Clerk) -> User:
5563
"""Creates (or checks already exists) a test clerk user.

0 commit comments

Comments
 (0)