diff options
author | maxim-yurchuk <maxim-yurchuk@yandex-team.com> | 2024-10-09 12:29:46 +0300 |
---|---|---|
committer | maxim-yurchuk <maxim-yurchuk@yandex-team.com> | 2024-10-09 13:14:22 +0300 |
commit | 9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch) | |
tree | a8fb3181d5947c0d78cf402aa56e686130179049 /contrib/python/requests-oauthlib | |
parent | a44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff) | |
download | ydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz |
publishFullContrib: true for ydb
<HIDDEN_URL>
commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/requests-oauthlib')
-rw-r--r-- | contrib/python/requests-oauthlib/patches/01-fix-tests.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/contrib/python/requests-oauthlib/patches/01-fix-tests.patch b/contrib/python/requests-oauthlib/patches/01-fix-tests.patch new file mode 100644 index 0000000000..6ce126e43a --- /dev/null +++ b/contrib/python/requests-oauthlib/patches/01-fix-tests.patch @@ -0,0 +1,36 @@ +--- contrib/python/requests-oauthlib/tests/test_core.py (index) ++++ contrib/python/requests-oauthlib/tests/test_core.py (working tree) +@@ -84,6 +84,7 @@ class OAuth1Test(unittest.TestCase): + + self.assertEqual(b.headers.get("Authorization"), c.headers.get("Authorization")) + ++ @unittest.skip("test uses real http://httpbin.org") + def testCanPostBinaryData(self, generate_nonce, generate_timestamp): + """ + Test we can post binary data. Should prevent regression of the +@@ -92,7 +93,8 @@ class OAuth1Test(unittest.TestCase): + generate_nonce.return_value = "abc" + generate_timestamp.return_value = "1" + oauth = requests_oauthlib.OAuth1("client_key") +- dirname = os.path.dirname(__file__) ++ import yatest.common ++ dirname = yatest.common.test_source_path() + fname = os.path.join(dirname, "test.bin") + + with open(fname, "rb") as f: +@@ -105,6 +107,7 @@ class OAuth1Test(unittest.TestCase): + ) + self.assertEqual(r.status_code, 200) + ++ @unittest.skip("test uses real http://httpbin.org") + def test_url_is_native_str(self, generate_nonce, generate_timestamp): + """ + Test that the URL is always a native string. +@@ -116,6 +119,7 @@ class OAuth1Test(unittest.TestCase): + r = requests.get("http://httpbin.org/get", auth=oauth) + self.assertIsInstance(r.request.url, str) + ++ @unittest.skip("test uses real http://httpbin.org") + def test_content_type_override(self, generate_nonce, generate_timestamp): + """ + Content type should only be guessed if none is given. |