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


class TestPluginCanHandleUrlSteamBroadcastPlugin(PluginCanHandleUrl):
    __plugin__ = SteamBroadcastPlugin

    should_match = [
        "https://steamcommunity.com/broadcast/watch/12432432",
        "http://steamcommunity.com/broadcast/watch/342342",
        "https://steam.tv/dota2",
        "http://steam.tv/dota2",
    ]

    should_not_match = [
        "http://steamcommunity.com/broadcast",
        "https://steamcommunity.com",
    ]