aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-08-15 17:48:17 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2020-08-15 17:48:17 -0400
commita9dc717bd3bed88f1c9a9845f20c7d0c6df3b091 (patch)
tree9ba1bc366235a2fda8352a87b4a9ec3c3d5c8044 /test
parent366cfd0b079036401bfba8ad21fd217310a1230f (diff)
parent7cf59dc17c3607e096292462ed15d391be4e3dfd (diff)
Update upstream source from tag 'upstream/1.14.4'
Update to upstream version '1.14.4' with Debian dir 6efd1a975e5a197bdad2999f9c9ecbfdd15ab9d1
Diffstat (limited to 'test')
-rw-r--r--test/test_oauth.py8
-rw-r--r--test/test_results.py6
2 files changed, 10 insertions, 4 deletions
diff --git a/test/test_oauth.py b/test/test_oauth.py
index e4664e4..7455928 100644
--- a/test/test_oauth.py
+++ b/test/test_oauth.py
@@ -15,7 +15,6 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from gallery_dl import oauth, text # noqa E402
TESTSERVER = "http://term.ie/oauth/example"
-TESTSERVER = "http://term.ie/oauth/example"
CONSUMER_KEY = "key"
CONSUMER_SECRET = "secret"
REQUEST_TOKEN = "requestkey"
@@ -96,12 +95,17 @@ class TestOAuthSession(unittest.TestCase):
def _oauth_request(self, endpoint, params=None,
oauth_token=None, oauth_token_secret=None):
+ # the test server at 'term.ie' is unreachable
+ raise unittest.SkipTest()
+
session = oauth.OAuth1Session(
CONSUMER_KEY, CONSUMER_SECRET,
oauth_token, oauth_token_secret,
)
try:
- return session.get(TESTSERVER + endpoint, params=params).text
+ response = session.get(TESTSERVER + endpoint, params=params)
+ response.raise_for_status()
+ return response.text
except OSError:
raise unittest.SkipTest()
diff --git a/test/test_results.py b/test/test_results.py
index dd1ed1d..1f2f699 100644
--- a/test/test_results.py
+++ b/test/test_results.py
@@ -31,8 +31,10 @@ TRAVIS_SKIP = {
# temporary issues, etc.
BROKEN = {
- "bobx",
+ "hentaihand",
"imagevenue",
+ "mangapark",
+ "ngomik",
"photobucket",
"worldthree",
}
@@ -317,7 +319,7 @@ def setup_test_config():
config.set(("extractor", "mangoxo") , "password", "5zbQF10_5u25259Ma")
for category in ("danbooru", "instagram", "twitter", "subscribestar",
- "e621"):
+ "e621", "inkbunny"):
config.set(("extractor", category), "username", None)
config.set(("extractor", "mastodon.social"), "access-token",