From 51db764448466807368a986ba5024cc80a845a0a Mon Sep 17 00:00:00 2001 From: rubyist Date: Thu, 5 Mar 2020 17:01:52 -0800 Subject: [PATCH] Added some tests --- youtube_dl/extractor/ponyfm.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/ponyfm.py b/youtube_dl/extractor/ponyfm.py index b0ec6300c..11d8b9a2f 100644 --- a/youtube_dl/extractor/ponyfm.py +++ b/youtube_dl/extractor/ponyfm.py @@ -12,7 +12,23 @@ class PonyFMIE(InfoExtractor): point using a separate class that will be in this file. """ _VALID_URL = r'https?://pony\.fm/tracks/(?P\d+)-.+' - _TESTS = [] + _TESTS = [{ + 'url': 'https://pony.fm/tracks/43462-summer-wind-fallout-equestria-skybolt', + 'info_dict': { + 'id': '43462', + 'ext': 'flac', + 'title': 'Summer Wind (Fallout: Equestria) - SkyBolt', + 'uploader': 'SkyBoltsMusic', + } + }, { + 'url': 'https://pony.fm/tracks/43852-kirin-ts', + 'info_dict': { + 'id': '43852', + 'ext': 'mp3', + 'title': 'KIRIN TS', + 'uploader': '7TAIL3DFOXX' + } + }] def _real_extract(self, url): track_id = self._match_id(url)