File: test_tv3cat.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 (31 lines) | stat: -rw-r--r-- 1,320 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
27
28
29
30
31
from streamlink.plugins.tv3cat import TV3Cat
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlTV3Cat(PluginCanHandleUrl):
    __plugin__ = TV3Cat

    should_match_groups = [
        (("live", "https://www.3cat.cat/3cat/directes/tv3/"), {"ident": "tv3"}),
        (("live", "https://www.ccma.cat/3cat/directes/tv3/"), {"ident": "tv3"}),
        (("live", "https://www.ccma.cat/3cat/directes/324/"), {"ident": "324"}),
        (("live", "https://www.ccma.cat/3cat/directes/esport3/"), {"ident": "esport3"}),
        (("live", "https://www.ccma.cat/3cat/directes/sx3/"), {"ident": "sx3"}),
        (("live", "https://www.ccma.cat/3cat/directes/catalunya-radio/"), {"ident": "catalunya-radio"}),
        (
            ("vod", "https://www.3cat.cat/3cat/t1xc1-arribada/video/6260741/"),
            {"ident": "6260741"},
        ),
        (
            ("vod", "https://www.ccma.cat/3cat/t1xc1-arribada/video/6260741/"),
            {"ident": "6260741"},
        ),
        (
            ("vod", "https://www.ccma.cat/3cat/merli-els-peripatetics-capitol-1/video/5549976/"),
            {"ident": "5549976"},
        ),
        (
            ("vod", "https://www.ccma.cat/3cat/buscant-la-sostenibilitat-i-la-tecnologia-del-futur/video/6268863/"),
            {"ident": "6268863"},
        ),
    ]