replace space characters in unit test URLs

This commit is contained in:
Mike Fährmann
2017-10-23 17:00:53 +02:00
parent bf82181359
commit 81a7788b40
4 changed files with 6 additions and 6 deletions

View File

@@ -141,7 +141,7 @@ class ImagefapUserExtractor(Extractor):
r"profile(?:\.php\?user=|/)([^/]+)"),
(r"(?:https?://)?(?:www\.)?imagefap\.com/"
r"usergallery\.php\?userid=(\d+)")]
test = [("http://www.imagefap.com/profile/Mr Bad Example/galleries", {
test = [("http://www.imagefap.com/profile/Mr%20Bad%20Example/galleries", {
"url": "145e98a8648c7695c150800ff8fd578ab26c28c1",
})]
@@ -158,7 +158,7 @@ class ImagefapUserExtractor(Extractor):
yield Message.Version, 1
for gid, name in self.get_gallery_data():
url = "http://www.imagefap.com/gallery/" + gid
data = {"gallery_id": util.safe_int(gid), "name": name}
data = {"gallery_id": util.safe_int(gid), "title": name}
yield Message.Queue, url, data
def get_gallery_data(self):