Extract environment-backed settings into a dedicated module and switch the aiohttp app to a factory-based bootstrap. Move runtime dependencies into typed app state, tighten CORS defaults, reject sensitive inline yt-dlp options, and harden the container entrypoint validation and ownership flow. Update tests to cover settings validation, app factory behavior, CORS policy, and entrypoint safety checks. |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_api.py | ||
| test_config.py | ||
| test_dl_formats.py | ||
| test_download_queue.py | ||
| test_entrypoint.py | ||
| test_main_helpers.py | ||
| test_persistent_queue.py | ||
| test_ytdl_utils.py | ||