From 695b659189f2276fe97658735df06b9fd00a28ac Mon Sep 17 00:00:00 2001 From: Norbert Kwizera Date: Thu, 28 Nov 2024 15:54:37 +0200 Subject: [PATCH] Update twython to 3.9.1 --- poetry.lock | 13 +++++++------ pyproject.toml | 2 +- temba/channels/types/twitter/tests.py | 2 ++ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/poetry.lock b/poetry.lock index 42b5393c8f3..f0fb1b2c5b2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2029,17 +2029,18 @@ six = "*" [[package]] name = "twython" -version = "3.5.0" -description = "Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs" +version = "3.9.1" +description = "Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs" optional = false -python-versions = "*" +python-versions = ">=3.5" files = [ - {file = "twython-3.5.0.tar.gz", hash = "sha256:01ad5ed21f3da641a3dc58a814b435aac4cf91c691b1afc5a8dc0ca4e1affe47"}, + {file = "twython-3.9.1-py3-none-any.whl", hash = "sha256:aef7ad4faabee91efcbe82a8618b38a948498fc6b3eca4cd76f642f957353818"}, + {file = "twython-3.9.1.tar.gz", hash = "sha256:5a3f0ac24d10705257028fb4205bfedf432ff28d358b796e0c2f01a2f9990c84"}, ] [package.dependencies] requests = ">=2.1.0" -requests_oauthlib = ">=0.4.0" +requests-oauthlib = ">=0.4.0" [[package]] name = "typing-extensions" @@ -2234,4 +2235,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "~3.12" -content-hash = "2805b22c847a8a482990466f54fae9eb820c27819d469274a403f2fe961026f5" +content-hash = "dd3228ddfbf87e44b6cb23f5b56000df976b2b49c8e5ea651af240eaf41ca253" diff --git a/pyproject.toml b/pyproject.toml index 22c06ed2680..c333b755b00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ cryptography = "^43.0.3" vonage = "2.5.2" pyotp = "2.4.1" twilio = "6.24.0" -twython = "3.5.0" +twython = "3.9.1" geojson = "^2.5.0" Markdown = "^3.3.4" polib = "^1.1.0" diff --git a/temba/channels/types/twitter/tests.py b/temba/channels/types/twitter/tests.py index 114da89346b..69b9c97d9ff 100644 --- a/temba/channels/types/twitter/tests.py +++ b/temba/channels/types/twitter/tests.py @@ -173,6 +173,7 @@ def test_register_webhook(self, mock_request): "POST", params=None, version="1.1", + json_encoded=False, ) @patch("twython.Twython.request") @@ -184,4 +185,5 @@ def test_subscribe_to_webhook(self, mock_request): "POST", params=None, version="1.1", + json_encoded=False, )