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


class TestPluginCanHandleUrlGoodGame(PluginCanHandleUrl):
    __plugin__ = GoodGame

    should_match_groups = [
        (("default", "https://goodgame.ru/CHANNELNAME"), {"channel": "CHANNELNAME"}),
        (("default", "https://goodgame.ru/CHANNELNAME/"), {"channel": "CHANNELNAME"}),
        (("default", "https://goodgame.ru/CHANNELNAME?foo=bar"), {"channel": "CHANNELNAME"}),
        (("default", "https://www.goodgame.ru/CHANNELNAME"), {"channel": "CHANNELNAME"}),
        (("player", "https://goodgame.ru/player?CHANNELID"), {"channel_id": "CHANNELID"}),
        (("player", "https://www.goodgame.ru/player?CHANNELID"), {"channel_id": "CHANNELID"}),
    ]

    should_not_match = [
        "https://goodgame.ru/player?",
    ]