File: test_chzzk.py

package info (click to toggle)
streamlink 8.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,564 kB
  • sloc: python: 51,188; sh: 184; makefile: 152
file content (12 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
from streamlink.plugins.chzzk import Chzzk
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlChzzk(PluginCanHandleUrl):
    __plugin__ = Chzzk

    should_match_groups = [
        (("live", "https://chzzk.naver.com/live/CHANNEL_ID"), {"channel_id": "CHANNEL_ID"}),
        (("video", "https://chzzk.naver.com/video/VIDEO_ID"), {"video_id": "VIDEO_ID"}),
        (("clip", "https://chzzk.naver.com/clips/CLIP_ID"), {"clip_id": "CLIP_ID"}),
    ]