trying to understand travis-ci unit test failures

- added some debug output via logging module
- unit tests work on my machine (tm)
pull/13/head
Mike Fährmann 8 years ago
parent 72d3ca0bf9
commit ad4b02508f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2014, 2015 Mike Fährmann
# Copyright 2014-2017 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@ -10,11 +10,15 @@
import time
import queue
import logging
import requests
import threading
from .message import Message
from .. import config
log = logging.getLogger(__name__)
class Extractor():
category = ""
@ -92,4 +96,7 @@ def safe_request(session, url, method="GET", *args, **kwargs):
continue
# everything ok -- proceed to download
log.debug(url)
log.debug(r.headers)
log.debug(r.text)
return r

@ -243,8 +243,6 @@ class ImgspiceImageExtractor(ImagehostImageExtractor):
pattern = [r"(?:https?://)?((?:www\.)?imgspice\.com/([^/]+))"]
test = [("https://imgspice.com/zop38mvvq29u/", {
"url": "a45833733c02b64d105363ffd8fd19f06992a2f7",
"keyword": "5218f63195e6a487c0881fd1cda78c535c61b462",
"content": "0c8768055e4e20e7c7259608b67799171b691140",
})]
https = True
params = None

@ -55,7 +55,7 @@ if __name__ == '__main__' and len(sys.argv) > 1:
]
del sys.argv[1:]
skip = ["kissmanga"]
skip = []
for extr in extractors:
if extr.category in skip:
continue

Loading…
Cancel
Save