MCPcopy
hub / github.com/scdl-org/scdl / test_playlist

Function test_playlist

tests/test_playlist.py:40–51  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

38
39
40def test_playlist(tmp_path: Path) -> None:
41 os.chdir(tmp_path)
42 r = call_scdl_with_auth(
43 "-l",
44 "https://soundcloud.com/one-thousand-and-one/sets/test-playlist/s-ZSLfNrbPoXR",
45 "--playlist-name-format",
46 "{playlist[tracknumber]}_{title}",
47 "--onlymp3",
48 )
49 assert r.returncode == 0
50 assert_track_playlist_1(tmp_path)
51 assert_track_playlist_2(tmp_path)
52
53
54def test_offset(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 3

call_scdl_with_authFunction · 0.90
assert_track_playlist_1Function · 0.85
assert_track_playlist_2Function · 0.85

Tested by

no test coverage detected