File: test_ceskatelevize.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 (21 lines) | stat: -rw-r--r-- 826 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
from streamlink.plugins.ceskatelevize import Ceskatelevize
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlCeskatelevize(PluginCanHandleUrl):
    __plugin__ = Ceskatelevize

    should_match_groups = [
        (("channel", "https://ct24.ceskatelevize.cz/"), {"channel": "ct24"}),
        (("channel", "https://decko.ceskatelevize.cz/"), {"channel": "decko"}),
        (("sport", "https://sport.ceskatelevize.cz/"), {}),
        (("default", "https://ceskatelevize.cz/zive/ct1"), {}),
        (("default", "https://ceskatelevize.cz/zive/ct2"), {}),
        (("default", "https://ceskatelevize.cz/zive/art"), {}),
        (("default", "https://ceskatelevize.cz/zive/ch-28"), {}),
    ]

    should_not_match = [
        "https://ceskatelevize.cz/",
        "https://www.ceskatelevize.cz/zive/",
    ]