File: test_nos.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 (27 lines) | stat: -rw-r--r-- 987 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
from streamlink.plugins.nos import NOS
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlNOS(PluginCanHandleUrl):
    __plugin__ = NOS

    should_match = [
        "https://nos.nl/live",
        "https://nos.nl/livestream/2539164-schaatsen-wb-milwaukee-straks-de-massastart-m",
        "https://nos.nl/collectie/13951/video/2491092-dit-was-prinsjesdag",
        "https://nos.nl/l/2490788",
        "https://nos.nl/video/2490788-meteoor-gespot-boven-noord-nederland",
    ]

    should_not_match = [
        "https://nos.nl/livestream",
        "https://nos.nl/l",
        "https://nos.nl/video",
        "https://nos.nl/collectie",
        "https://nos.nl/artikel/2385784-explosieve-situatie-leidde-tot-verwoeste-huizen-en-omgewaaide-bomen-leersum",
        "https://nos.nl/sport",
        "https://nos.nl/sport/videos",
        "https://nos.nl/programmas",
        "https://nos.nl/uitzendingen",
        "https://nos.nl/uitzendingen/livestream/2385462",
    ]