aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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",