fix various tests
This commit is contained in:
@@ -157,7 +157,7 @@ def generate_extractors():
|
|||||||
|
|
||||||
category = info.get("category") or instance.replace(".", "")
|
category = info.get("category") or instance.replace(".", "")
|
||||||
root = info.get("root") or "https://" + instance
|
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")
|
token = info.get("access-token")
|
||||||
pattern = info.get("pattern") or re.escape(instance)
|
pattern = info.get("pattern") or re.escape(instance)
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ def generate_extractors():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
Extr.__name__ = Extr.__qualname__ = name + "StatusExtractor"
|
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.category = category
|
||||||
Extr.instance = instance
|
Extr.instance = instance
|
||||||
Extr.pattern = [r"(?:https?://)?" + pattern + r"/@[^/?&#]+/(\d+)"]
|
Extr.pattern = [r"(?:https?://)?" + pattern + r"/@[^/?&#]+/(\d+)"]
|
||||||
|
|||||||
@@ -159,9 +159,7 @@ class TestExtractor(unittest.TestCase):
|
|||||||
"4chan" : "fourchan",
|
"4chan" : "fourchan",
|
||||||
"4plebs" : "fourplebs",
|
"4plebs" : "fourplebs",
|
||||||
"8chan" : "infinitychan",
|
"8chan" : "infinitychan",
|
||||||
"b4k" : "bfourk",
|
|
||||||
"oauth" : None,
|
"oauth" : None,
|
||||||
"rbt" : "rebeccablacktech",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for extr in extractor.extractors():
|
for extr in extractor.extractors():
|
||||||
|
|||||||
@@ -23,10 +23,8 @@ TRAVIS_SKIP = {
|
|||||||
|
|
||||||
# temporary issues, etc.
|
# temporary issues, etc.
|
||||||
BROKEN = {
|
BROKEN = {
|
||||||
"desuarchive",
|
|
||||||
"mangahere",
|
"mangahere",
|
||||||
"ngomik",
|
"ngomik",
|
||||||
"rbt",
|
|
||||||
"simplyhentai",
|
"simplyhentai",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user