1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

fix various tests

This commit is contained in:
Mike Fährmann 2019-02-04 14:40:21 +01:00
parent 00dc37ccbf
commit 347398f692
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 2 additions and 6 deletions

View File

@ -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+)"]

View File

@ -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():

View File

@ -23,10 +23,8 @@ TRAVIS_SKIP = {
# temporary issues, etc.
BROKEN = {
"desuarchive",
"mangahere",
"ngomik",
"rbt",
"simplyhentai",
}