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:
parent
00dc37ccbf
commit
347398f692
@ -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+)"]
|
||||
|
@ -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():
|
||||
|
@ -23,10 +23,8 @@ TRAVIS_SKIP = {
|
||||
|
||||
# temporary issues, etc.
|
||||
BROKEN = {
|
||||
"desuarchive",
|
||||
"mangahere",
|
||||
"ngomik",
|
||||
"rbt",
|
||||
"simplyhentai",
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user