From 386e1394d7099508077d1cf16d88cc5d23585974 Mon Sep 17 00:00:00 2001 From: Lauren Liberda Date: Fri, 28 May 2021 00:53:27 +0200 Subject: [PATCH] [misskey] add tests --- haruhi_dl/extractor/misskey.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/haruhi_dl/extractor/misskey.py b/haruhi_dl/extractor/misskey.py index 934d0f96c..bd0acf4ef 100644 --- a/haruhi_dl/extractor/misskey.py +++ b/haruhi_dl/extractor/misskey.py @@ -20,6 +20,17 @@ class MisskeySHIE(SelfhostedInfoExtractor): '', ) + _TESTS = [{ + 'url': 'https://catgirl.life/notes/8lh52dlrii', + 'info_dict': { + 'id': '8lh52dlrii', + 'ext': 'mp4', + 'timestamp': 1604387877, + 'upload_date': '20201103', + 'title': '@graf@poa.st @Moon@shitposter.club \n*kickstarts your federation*', + }, + }] + def _selfhosted_extract(self, url, webpage=None): host, video_id = self._match_id_and_host(url)