From f3793660ef51b16f2b79e3dbdb046003391ffbe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 2 Aug 2018 14:51:51 +0200 Subject: [PATCH] update tests --- gallery_dl/extractor/behance.py | 8 +++++++- gallery_dl/extractor/flickr.py | 2 +- gallery_dl/extractor/imagehosts.py | 6 +++--- test/test_results.py | 3 ++- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/gallery_dl/extractor/behance.py b/gallery_dl/extractor/behance.py index d1a65ba5..1666ce78 100644 --- a/gallery_dl/extractor/behance.py +++ b/gallery_dl/extractor/behance.py @@ -24,8 +24,9 @@ class BehanceGalleryExtractor(Extractor): test = [ ("https://www.behance.net/gallery/17386197", { "count": 2, + "url": "8c692c208b74fed789288eda9230715be8d02057", "keyword": { - "title": str, + "title": 're:"Hi". A short story about the important things ', "user": "Place Studio, Julio César Velazquez", "fields": ["Animation", "Character Design", "Directing"], "date": 1401810111, @@ -34,6 +35,11 @@ class BehanceGalleryExtractor(Extractor): "comments": int, }, }), + ("https://www.behance.net/gallery/13706563/Fundacja-ING-Dzieciom", { + "count": 7, + "url": "3b78be2a5652524529962cf2dc81b383129c1363", + "keyword": {"user": "UVMW Studio"}, + }), ] def __init__(self, match): diff --git a/gallery_dl/extractor/flickr.py b/gallery_dl/extractor/flickr.py index f5ce0d98..cea46b1d 100644 --- a/gallery_dl/extractor/flickr.py +++ b/gallery_dl/extractor/flickr.py @@ -150,7 +150,7 @@ class FlickrGalleryExtractor(FlickrExtractor): test = [(("https://www.flickr.com/photos/flickr/" "galleries/72157681572514792/"), { "url": "1e0e300fa5fe8c49ba5dfa7ccca0cb0da8a04f93", - "keyword": "7dd699ce77343921e8f149555ab2486a8ba1e9ec", + "keyword": "ba1f0e4bf5ee4e10071bdc272c19f015985cf055", })] def __init__(self, match): diff --git a/gallery_dl/extractor/imagehosts.py b/gallery_dl/extractor/imagehosts.py index b98de09b..8c8d2ad1 100644 --- a/gallery_dl/extractor/imagehosts.py +++ b/gallery_dl/extractor/imagehosts.py @@ -216,9 +216,9 @@ class TurboimagehostImageExtractor(ImagehostImageExtractor): category = "turboimagehost" pattern = [(r"(?:https?://)?((?:www\.)?turboimagehost\.com/p/(\d+)" r"/[^/]+\.html)")] - test = [("https://www.turboimagehost.com/p/29690902/test--.png.html", { - "url": "ada27a4e04f9ffd5ab7cd787f4559d5b3744520b", - "keyword": "a4527f14675e4512ef317ee0401940c711fbe012", + test = [("https://www.turboimagehost.com/p/39078423/test--.png.html", { + "url": "b94de43612318771ced924cb5085976f13b3b90e", + "keyword": "c1391465dc7b590b0eb8ea2a8cd235733c6fce2b", "content": "0c8768055e4e20e7c7259608b67799171b691140", })] https = True diff --git a/test/test_results.py b/test/test_results.py index 5525b86b..782d5c3b 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -18,11 +18,12 @@ from gallery_dl import extractor, job, config, exception TRAVIS_SKIP = { "exhentai", "kissmanga", "mangafox", "dynastyscans", "nijie", "archivedmoe", "archiveofsins", "thebarchive", "fireden", - "sankaku", "idolcomplex", "mangahere", "turboimagehost", + "sankaku", "idolcomplex", "mangahere", } # temporary issues, etc. BROKEN = { + "imagetwist", "subapics", }