establish config defaults

This commit is contained in:
2026-05-16 16:22:24 +03:00
parent 5d4cba3df3
commit 8e3a7e3920
6 changed files with 38 additions and 13 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ from src.app.core.download.downloader import Downloader
def test_build_format_defaults_to_best_mp4():
fmt = Downloader.build_format(None)
assert "height<=" not in fmt
assert "best[ext=mp4]" in fmt
assert "height<=1080" in fmt
assert fmt.endswith("/best[ext=mp4]")
def test_build_format_applies_height_cap():