Spaces:
Running
Running
Download tests/conftest.py from basyx/MediaRouter: direct link, hf CLI and curl.
- Browser
- Download file 596 Bytes
-
https://huggingface.co/spaces/basyx/MediaRouter/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/basyx/MediaRouter/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/basyx/MediaRouter/resolve/main/tests/conftest.py
596 Bytes
| from __future__ import annotations | |
| from pathlib import Path | |
| import pytest | |
| from app.core.config import Settings | |
| 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'}", | |
| ) | |