File: test_vimeo.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 (20 lines) | stat: -rw-r--r-- 798 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
from streamlink.plugins.vimeo import Vimeo
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlVimeo(PluginCanHandleUrl):
    __plugin__ = Vimeo

    should_match_groups = [
        (("default", "https://vimeo.com/783455878"), {}),
        (("default", "https://vimeo.com/channels/music/176894130"), {}),
        (("default", "https://vimeo.com/ondemand/worldoftomorrow3/467204924"), {}),
        (("default", "https://vimeo.com/ondemand/100footsurfingdays"), {}),
        (("player", "https://player.vimeo.com/video/176894130"), {}),
        (("event", "https://vimeo.com/event/4154130"), {"event_id": "4154130"}),
        (("event", "https://vimeo.com/event/4154130/embed"), {"event_id": "4154130"}),
    ]

    should_not_match = [
        "https://www.vimeo.com/",
    ]