File: test_olympicchannel.py

package info (click to toggle)
streamlink 8.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,608 kB
  • sloc: python: 51,763; sh: 184; makefile: 152
file content (26 lines) | stat: -rw-r--r-- 1,385 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
23
24
25
26
from streamlink.plugins.olympicchannel import OlympicChannel
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlOlympicChannel(PluginCanHandleUrl):
    __plugin__ = OlympicChannel

    should_match = [
        "https://www.olympicchannel.com/en/video/detail/stefanidi-husband-coach-krier-relationship/",
        "https://www.olympicchannel.com/en/live/",
        "https://www.olympicchannel.com/en/live/video/detail/olympic-ceremonies-channel/",
        "https://www.olympicchannel.com/de/video/detail/stefanidi-husband-coach-krier-relationship/",
        "https://www.olympicchannel.com/de/original-series/detail/body/body-season-season-1/episodes/"
        + "treffen-sie-aaron-wheelz-fotheringham-den-paten-des-rollstuhl-extremsports/",
        "https://olympics.com/en/sport-events/2021-fiba-3x3-olympic-qualifier-graz/?"
        + "slug=final-day-fiba-3x3-olympic-qualifier-graz",
        "https://olympics.com/en/video/spider-woman-shauna-coxsey-great-britain-climbing-interview",
        "https://olympics.com/en/original-series/episode/how-fun-fuels-this-para-taekwondo-world-champion-unleash-the-new",
        "https://olympics.com/tokyo-2020/en/news/videos/tokyo-2020-1-message",
    ]

    should_not_match = [
        "https://www.olympicchannel.com/en/",
        "https://www.olympics.com/en/",
        "https://olympics.com/tokyo-2020/en/",
    ]