mirror of
https://github.com/agentrhq/authsome.git
synced 2026-09-19 01:34:19 +08:00
12 lines
378 B
Python
12 lines
378 B
Python
"""Shared helpers for server route tests."""
|
|
|
|
from fastapi.testclient import TestClient
|
|
|
|
from authsome.server.app import create_app
|
|
from tests.conftest import TEST_AUTHSOME_BASE_URL
|
|
|
|
|
|
def create_server_test_client() -> TestClient:
|
|
"""Create a TestClient using the daemon base URL configured for tests."""
|
|
return TestClient(create_app(), base_url=TEST_AUTHSOME_BASE_URL)
|