mirror of
https://github.com/ihabunek/twitch-dl
synced 2024-08-30 18:32:25 +00:00
Expand clips tests
This commit is contained in:
parent
235b13c257
commit
280a284fb2
@ -5,7 +5,7 @@ These tests depend on the channel having some videos and clips published.
|
|||||||
import httpx
|
import httpx
|
||||||
import m3u8
|
import m3u8
|
||||||
from twitchdl import twitch
|
from twitchdl import twitch
|
||||||
from twitchdl.commands.download import _parse_playlists
|
from twitchdl.commands.download import _parse_playlists, get_clip_authenticated_url
|
||||||
|
|
||||||
TEST_CHANNEL = "bananasaurus_rex"
|
TEST_CHANNEL = "bananasaurus_rex"
|
||||||
|
|
||||||
@ -43,6 +43,8 @@ def test_get_clips():
|
|||||||
assert clips["pageInfo"]
|
assert clips["pageInfo"]
|
||||||
assert len(clips["edges"]) > 0
|
assert len(clips["edges"]) > 0
|
||||||
|
|
||||||
clip_slug = clips["edges"][0]["node"]["slug"]
|
slug = clips["edges"][0]["node"]["slug"]
|
||||||
clip = twitch.get_clip(clip_slug)
|
clip = twitch.get_clip(slug)
|
||||||
assert clip["slug"] == clip_slug
|
assert clip["slug"] == slug
|
||||||
|
|
||||||
|
assert get_clip_authenticated_url(slug, "source")
|
||||||
|
Loading…
Reference in New Issue
Block a user