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?",
]
|