disable unique archive id checks for some tests

- same image twice in a livedoor blog post
- unreliable results for related pinterest items
pull/511/head
Mike Fährmann 5 years ago
parent 67e54ed8ea
commit da6789b2b0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

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

@ -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": {

@ -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):

@ -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"

@ -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

Loading…
Cancel
Save