summaryrefslogtreecommitdiffstats
path: root/test/test_oauth.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-06-01 23:11:37 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2020-06-01 23:11:37 -0400
commita70a3246927b72f1ded37acd55ee719515441b5b (patch)
tree57f0d3ab0b1387b665325f42a24b8aab63cbce07 /test/test_oauth.py
parent90e50db2e3c38f523bb5195d295290b06e5cedb0 (diff)
New upstream version 1.14.0.upstream/1.14.0
Diffstat (limited to 'test/test_oauth.py')
-rw-r--r--test/test_oauth.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_oauth.py b/test/test_oauth.py
index 58d4088..e4664e4 100644
--- a/test/test_oauth.py
+++ b/test/test_oauth.py
@@ -15,6 +15,7 @@ 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"
@@ -99,8 +100,10 @@ class TestOAuthSession(unittest.TestCase):
CONSUMER_KEY, CONSUMER_SECRET,
oauth_token, oauth_token_secret,
)
- url = TESTSERVER + endpoint
- return session.get(url, params=params).text
+ try:
+ return session.get(TESTSERVER + endpoint, params=params).text
+ except OSError:
+ raise unittest.SkipTest()
if __name__ == "__main__":