MediaRouter / tests /conftest.py
basyx's picture
Upload 437 files
7cc81cb verified
Raw
History Blame Contribute Delete
596 Bytes
from __future__ import annotations
from pathlib import Path
import pytest
from app.core.config import Settings
@pytest.fixture
def settings(tmp_path: Path) -> Settings:
return Settings(
_env_file=None,
temp_dir=tmp_path / "temp",
output_dir=tmp_path / "outputs",
max_upload_size=10 * 1024 * 1024,
cleanup_minutes=1,
cleanup_interval_seconds=3600,
whisper_model="tiny",
max_workers=1,
allow_private_urls=True,
auth_enabled=False,
database_url=f"sqlite+aiosqlite:///{tmp_path / 'security.db'}",
)