From c1020cf113592b26057ef10dae245f2f93b08a59 Mon Sep 17 00:00:00 2001 From: rubyist Date: Thu, 27 Feb 2020 19:42:51 -0800 Subject: [PATCH] Added tests for Matter extractor --- youtube_dl/extractor/matter.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/matter.py b/youtube_dl/extractor/matter.py index fb47bbff0..a0e96d278 100644 --- a/youtube_dl/extractor/matter.py +++ b/youtube_dl/extractor/matter.py @@ -12,9 +12,23 @@ class MatterIE(InfoExtractor): used to implement playlists or other content. """ _VALID_URL = r'https?://app.matter.online/tracks/(?P\d+)/?' - _TESTS = { - # TODO: Implement - } + _TESTS = [{ + 'url': 'https://app.matter.online/tracks/12866', + 'info_dict': { + 'id': '12866', + 'ext': 'mp3', + 'title': 'Beautiful type beat', + 'uploader': 'internet user', + }, + }, { + 'url': 'https://app.matter.online/tracks/18891', + 'info_dict': { + 'id': '18891', + 'ext': 'mp3', + 'title': 'starstruck', + 'uploader': 'iwi.', + } + }] def _real_extract(self, url): track_id = self._match_id(url)