make tests more reliable
This commit is contained in:
@@ -15,10 +15,10 @@ class InfinitychanThreadExtractor(chan.ChanThreadExtractor):
|
||||
category = "8chan"
|
||||
filename_fmt = "{time}-{filename}{ext}"
|
||||
pattern = [r"(?:https?://)?(?:www\.)?8ch\.net/([^/]+)/res/(\d+)"]
|
||||
test = [("https://8ch.net/tg/res/175887.html", {
|
||||
"url": "646d4230b40f9cff3f8674e3efe44bba3af4924b",
|
||||
"keyword": "923a6abc046cb618af8f9fd3bbb63c4cd6d73542",
|
||||
"content": "81e21a3cc87f64f224a966f207e8e1731216c345",
|
||||
test = [("https://8ch.net/wh40k/res/1.html", {
|
||||
"url": "9220c79950d3f9cdd2c0436e816aec6b8342fac1",
|
||||
"keyword": "df5773339c5864c71b63fc26ca60ea7098b83cb1",
|
||||
"content": "0533b95bee50c616e3c1a8c50e4087e170cfd950",
|
||||
})]
|
||||
api_url = "https://8ch.net/{board}/res/{thread}.json"
|
||||
file_url = "https://media.8ch.net/{board}/src/{tim}{ext}"
|
||||
|
||||
@@ -33,10 +33,7 @@ class MangamintMangaExtractor(MangamintExtractor):
|
||||
("www.mangamint.com/manga/mushishi-manga", {
|
||||
"url": "df7a1f4224d23e392ec09d4c7bbd4fbc873327d0",
|
||||
}),
|
||||
("https://www.mangamint.com/manga/gosu-manhwa", {
|
||||
"url": "6d06633cf3d5f9bd9f2c2b42918be853d6e0c395",
|
||||
}),
|
||||
("https://www.mangamint.com/manga/gosu", {
|
||||
("https://www.mangamint.com/manga/mushishi", {
|
||||
"exception": exception.NotFoundError,
|
||||
}),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user