From 7cf59dc17c3607e096292462ed15d391be4e3dfd Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sat, 15 Aug 2020 17:48:11 -0400 Subject: New upstream version 1.14.4. --- test/test_oauth.py | 8 ++++++-- test/test_results.py | 6 ++++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'test') 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 @@ -14,7 +14,6 @@ import unittest 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" @@ -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", -- cgit v1.2.3