diff options
| author | 2020-06-01 23:11:38 -0400 | |
|---|---|---|
| committer | 2020-06-01 23:11:38 -0400 | |
| commit | e71c0d2e99f894c50b0d514729a8b44a90ce03a4 (patch) | |
| tree | fc2ab19492570cf481e6efca5c42736a3c85f875 /test/test_oauth.py | |
| parent | 40449733839d8ac9d6f44cc5942fb7623817d186 (diff) | |
| parent | a70a3246927b72f1ded37acd55ee719515441b5b (diff) | |
Update upstream source from tag 'upstream/1.14.0'
Update to upstream version '1.14.0'
with Debian dir e10ad4f35c0e6250ed14f70c95b81b307b7b2acf
Diffstat (limited to 'test/test_oauth.py')
| -rw-r--r-- | test/test_oauth.py | 7 |
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__": |
