File: test_gulli.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 (32 lines) | stat: -rw-r--r-- 1,052 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
32
from streamlink.plugins.gulli import Gulli
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlGulli(PluginCanHandleUrl):
    __plugin__ = Gulli

    should_match = [
        (
            "live",
            "https://replay.gulli.fr/Direct",
        ),
        (
            "vod",
            "https://replay.gulli.fr/dessins-animes/Bob-l-eponge-s10/bob-l-eponge-s10-e05-un-bon-gros-dodo-vod69736581475000",
        ),
        (
            "vod",
            "https://replay.gulli.fr/emissions/Animaux-VIP-une-bete-de-reno-s02/animaux-vip-une-bete-de-reno-s02-e09-la-taniere-du-dragon-vod69634261609000",
        ),
        (
            "vod",
            "https://replay.gulli.fr/series/Black-Panther-Dangers-au-Wakanda/black-panther-dangers-au-wakanda-black-panther-dangers-au-wakanda-vod69941412154000",
        ),
    ]

    should_not_match = [
        "http://replay.gulli.fr/",
        "http://replay.gulli.fr/dessins-animes",
        "http://replay.gulli.fr/emissions",
        "http://replay.gulli.fr/series",
    ]