From 347398f692e2bd3fa043b4c9adb7bc95db12f30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Mon, 4 Feb 2019 14:40:21 +0100 Subject: [PATCH] fix various tests --- gallery_dl/extractor/mastodon.py | 4 ++-- test/test_extractor.py | 2 -- test/test_results.py | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/gallery_dl/extractor/mastodon.py b/gallery_dl/extractor/mastodon.py index 955b484a..826fda4c 100644 --- a/gallery_dl/extractor/mastodon.py +++ b/gallery_dl/extractor/mastodon.py @@ -157,7 +157,7 @@ def generate_extractors(): category = info.get("category") or instance.replace(".", "") root = info.get("root") or "https://" + instance - name = info.get("name") or category + name = (info.get("name") or category).capitalize() token = info.get("access-token") pattern = info.get("pattern") or re.escape(instance) @@ -178,7 +178,7 @@ def generate_extractors(): pass Extr.__name__ = Extr.__qualname__ = name + "StatusExtractor" - Extr.__doc__ = "Extractor for all images of a user on " + instance + Extr.__doc__ = "Extractor for images from a status on " + instance Extr.category = category Extr.instance = instance Extr.pattern = [r"(?:https?://)?" + pattern + r"/@[^/?&#]+/(\d+)"] diff --git a/test/test_extractor.py b/test/test_extractor.py index d15c2332..7849666d 100644 --- a/test/test_extractor.py +++ b/test/test_extractor.py @@ -159,9 +159,7 @@ class TestExtractor(unittest.TestCase): "4chan" : "fourchan", "4plebs" : "fourplebs", "8chan" : "infinitychan", - "b4k" : "bfourk", "oauth" : None, - "rbt" : "rebeccablacktech", } for extr in extractor.extractors(): diff --git a/test/test_results.py b/test/test_results.py index d54a7577..fb2c3008 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -23,10 +23,8 @@ TRAVIS_SKIP = { # temporary issues, etc. BROKEN = { - "desuarchive", "mangahere", "ngomik", - "rbt", "simplyhentai", }