update a few tests

This commit is contained in:
Mike Fährmann
2016-09-01 18:28:16 +02:00
parent 49359d375c
commit 808cf69556
3 changed files with 11 additions and 11 deletions

View File

@@ -18,9 +18,9 @@ class BatotoExtractor(AsynchronousExtractor):
directory_fmt = ["{category}", "{manga}", "c{chapter:>03} - {title}"]
filename_fmt = "{manga}_c{chapter:>03}_{page:>03}.{extension}"
pattern = [r"(?:https?://)?(?:www\.)?bato\.to/reader#([0-9a-f]+)"]
test = [("https://bato.to/reader#41c311af0d317c73", {
"url": "5b40e121dce03918db52d05be820bec14e75b7ac",
"keyword": "dfe033b8d3df5bf8e037c709675ef449cba75867",
test = [("http://bato.to/reader#459878c8fda07502", {
"url": "432d7958506ad913b0a9e42664a89e46a63e9296",
"keyword": "00727dd9e353581ec762b0b628dfcec1db5cba68",
})]
url = "https://bato.to/areader"

View File

@@ -50,7 +50,7 @@ class ImgchiliImageExtractor(ImgchiliExtractor):
test = [("http://imgchili.net/show/89427/89427136_test___quot;___gt;.png", {
"url": "b93d92a6b58eb30a7ff6f9729cb748d25fea0c86",
"keyword": "376c4584dfae7d7d2e88687d4ee9618bbfd0a35c",
"content": "0c8768055e4e20e7c7259608b67799171b691140",
"content": "3b2a74be551b0b5549c831c9994760ef35138b22",
})]
def get_job_metadata(self, page):
@@ -78,7 +78,7 @@ class ImgchiliAlbumExtractor(ImgchiliExtractor):
test = [("http://imgchili.net/album/7a3824c59f77c8d39b260f9168d4b49b", {
"url": "995e32b62c36d48b02ef4c7a7a19463924391e2a",
"keyword": "2d065bd7f822de4c0b7598679f2730e0082a617e",
"content": "6c596851567a68c2a68456b3abd959eae3d21c32",
"content": "6ec31d9c250810cf5d3e10e8559c69e91ccb74d4",
})]
def get_job_metadata(self, page):

View File

@@ -20,8 +20,8 @@ class TumblrUserExtractor(Extractor):
filename_fmt = "{category}_{user}_{id}{offset}.{extension}"
pattern = [r"(?:https?://)?([^.]+)\.tumblr\.com(?:/page/\d+)?/?$"]
test = [("http://demo.tumblr.com/", {
"url": "33ef388847dfa9d2b64232e4a3a5e193355ff2a5",
"keyword": "6c7010ef2e7c9c2df13c3233e57e7ec93ee9d6cd",
"url": "d3d2bb185230e537314a0036814050634c730f74",
"keyword": "9d2f21c77604c131c503236ffa138d4481f54a7b",
"content": "31495fdb9f84edbb7f67972746a1521456f649e2",
})]
@@ -89,8 +89,8 @@ class TumblrPostExtractor(TumblrUserExtractor):
subcategory = "post"
pattern = [r"(?:https?://)?([^.]+)\.tumblr\.com/post/(\d+)"]
test = [("http://demo.tumblr.com/post/459265350", {
"url": "33ef388847dfa9d2b64232e4a3a5e193355ff2a5",
"keyword": "4f2ffeb2732955436fbc208741abf63fd0dfa777",
"url": "d3d2bb185230e537314a0036814050634c730f74",
"keyword": "1728fc3a67efa9a209457d1904fd4b471828f043",
})]
def __init__(self, match):
@@ -103,8 +103,8 @@ class TumblrTagExtractor(TumblrUserExtractor):
subcategory = "tag"
pattern = [r"(?:https?://)?([^.]+)\.tumblr\.com/tagged/(.+)"]
test = [("http://demo.tumblr.com/tagged/Times Square", {
"url": "33ef388847dfa9d2b64232e4a3a5e193355ff2a5",
"keyword": "6c7010ef2e7c9c2df13c3233e57e7ec93ee9d6cd",
"url": "d3d2bb185230e537314a0036814050634c730f74",
"keyword": "9d2f21c77604c131c503236ffa138d4481f54a7b",
})]
def __init__(self, match):