mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-03 00:10:24 +02:00
19 lines
549 B
Python
19 lines
549 B
Python
import httpx
|
|
import pytest
|
|
|
|
from tests.integration.common_utils.constants import MOCK_CONNECTOR_SERVER_HOST
|
|
from tests.integration.common_utils.constants import MOCK_CONNECTOR_SERVER_PORT
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_server_client() -> httpx.Client:
|
|
print(
|
|
f"Initializing mock server client with host: "
|
|
f"{MOCK_CONNECTOR_SERVER_HOST} and port: "
|
|
f"{MOCK_CONNECTOR_SERVER_PORT}"
|
|
)
|
|
return httpx.Client(
|
|
base_url=f"http://{MOCK_CONNECTOR_SERVER_HOST}:{MOCK_CONNECTOR_SERVER_PORT}",
|
|
timeout=5.0,
|
|
)
|