mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-03 04:23:59 +03:00
16 lines
372 B
Python
16 lines
372 B
Python
from __future__ import annotations
|
|
|
|
from app.core.download.downloader import Downloader
|
|
|
|
|
|
def test_build_format_defaults_to_best_mp4():
|
|
fmt = Downloader.build_format(None)
|
|
assert "height<=1080" in fmt
|
|
assert fmt.endswith("/best[ext=mp4]")
|
|
|
|
|
|
def test_build_format_applies_height_cap():
|
|
fmt = Downloader.build_format("720p")
|
|
assert "height<=720" in fmt
|
|
|