Files
Athena-Deck/deploy/applio-web/backend/tests/test_config.py
Mikei386 06cacafbad Add native Applio RVC and preserve the custom studio UI
Pin Applio 3.6.5 and verified basis assets, migrate private voice provenance, and coordinate conversion/live/training with Deck GPU leases. Prepare an inactive voice profile and a restricted studio container. Move CUDA and Torch caches out of the small temporary filesystem to prevent OmniVoice reference failures. Package app updates from the explicit allowlist in one Docker layer.
2026-10-05 10:02:07 +02:00

25 lines
681 B
Python

"""Tests for configuration validation."""
def test_allowed_formats_parsing():
import os
os.environ["ALLOWED_AUDIO_FORMATS"] = "wav, mp3, flac"
from app import config
config._settings = None
from app.config import Settings
s = Settings()
assert s.allowed_formats_set == {"wav", "mp3", "flac"}
os.environ.pop("ALLOWED_AUDIO_FORMATS", None)
def test_max_upload_size_bytes():
import os
os.environ["MAX_UPLOAD_SIZE_MB"] = "100"
from app import config
config._settings = None
from app.config import Settings
s = Settings()
assert s.max_upload_size_bytes == 100 * 1024 * 1024
os.environ.pop("MAX_UPLOAD_SIZE_MB", None)