mirror of
https://github.com/suitenumerique/meet.git
synced 2026-07-26 11:58:53 +00:00
a27def119c
Ensure the API correctly validates and accepts the parameters required to register a task in the queue.
25 lines
582 B
Python
25 lines
582 B
Python
"""Integration test configuration. Provides shared fixtures."""
|
|
|
|
import pytest
|
|
from fastapi.testclient import TestClient
|
|
from pydantic import SecretStr
|
|
|
|
from summary.core.config import Settings, get_settings
|
|
from summary.main import app
|
|
|
|
|
|
def get_settings_override():
|
|
"""Return settings for tests."""
|
|
return Settings(
|
|
app_api_token=SecretStr("test-api-token"),
|
|
)
|
|
|
|
|
|
@pytest.fixture()
|
|
def client():
|
|
"""Provide a FastAPI TestClient for tests."""
|
|
client = TestClient(app)
|
|
app.dependency_overrides[get_settings] = get_settings_override
|
|
|
|
return client
|