File: test_picarto.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 (22 lines) | stat: -rw-r--r-- 929 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from streamlink.plugins.picarto import Picarto
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlPicarto(PluginCanHandleUrl):
    __plugin__ = Picarto

    should_match_groups = [
        (("user", "https://picarto.tv/example"), {"user": "example"}),
        (("user", "https://www.picarto.tv/example"), {"user": "example"}),
        (("vod", "https://www.picarto.tv/example/videos/123456"), {"vod_id": "123456"}),
        (("streampopout", "https://www.picarto.tv/streampopout/example/public"), {"po_user": "example"}),
        (("videopopout", "https://www.picarto.tv/videopopout/123456"), {"po_vod_id": "123456"}),
    ]

    should_not_match = [
        "https://picarto.tv/",
        "https://www.picarto.tv/example/",
        "https://www.picarto.tv/example/videos/abc123",
        "https://www.picarto.tv/streampopout/example/notpublic",
        "https://www.picarto.tv/videopopout/abc123",
    ]