1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00

disable unique archive id checks for some tests

- same image twice in a livedoor blog post
- unreliable results for related pinterest items
This commit is contained in:
Mike Fährmann 2019-11-10 17:03:38 +01:00
parent 67e54ed8ea
commit da6789b2b0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
5 changed files with 16 additions and 8 deletions

View File

@ -1,5 +1,7 @@
# Changelog
## Unreleased
## 1.11.1 - 2019-11-09
### Fixes
- Fix inclusion of bash completion and man pages in source distributions

View File

@ -89,6 +89,7 @@ class LivedoorBlogExtractor(LivedoorExtractor):
("http://blog.livedoor.jp/zatsu_ke/", {
"range": "1-50",
"count": 50,
"archive": False,
"pattern": r"https?://livedoor.blogimg.jp/\w+/imgs/\w/\w/\w+\.\w+",
"keyword": {
"post": {

View File

@ -119,8 +119,9 @@ class PinterestRelatedPinExtractor(PinterestPinExtractor):
directory_fmt = ("{category}", "related {original_pin[id]}")
pattern = BASE_PATTERN + r"/pin/([^/?#&]+).*#related$"
test = ("https://www.pinterest.com/pin/858146903966145189/#related", {
"range": "31-50",
"count": 20,
"range": "31-70",
"count": 40,
"archive": False,
})
def metadata(self):
@ -138,8 +139,9 @@ class PinterestRelatedBoardExtractor(PinterestBoardExtractor):
"{board[name]}", "related")
pattern = BASE_PATTERN + r"/(?!pin/)([^/?#&]+)/([^/?#&]+).*#related$"
test = ("https://www.pinterest.com/g1952849/test-/#related", {
"range": "31-50",
"count": 20,
"range": "31-70",
"count": 40,
"archive": False,
})
def pins(self):

View File

@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.11.1"
__version__ = "1.11.2-dev"

View File

@ -27,7 +27,6 @@ TRAVIS_SKIP = {
# temporary issues, etc.
BROKEN = {
"hentaifox",
"livedoor",
"mangapark",
"yaplog",
}
@ -85,8 +84,12 @@ class TestExtractorResults(unittest.TestCase):
self.skipTest(exc)
raise
# test archive-id uniqueness
self.assertEqual(len(set(tjob.archive_list)), len(tjob.archive_list))
if result.get("archive", True):
self.assertEqual(
len(set(tjob.archive_list)),
len(tjob.archive_list),
"archive-id uniqueness",
)
if tjob.queue:
# test '_extractor' entries