diff --git a/pubnub/pubnub_asyncio.py b/pubnub/pubnub_asyncio.py index a7c15362..5adca009 100644 --- a/pubnub/pubnub_asyncio.py +++ b/pubnub/pubnub_asyncio.py @@ -20,7 +20,6 @@ from pubnub.pubnub_core import PubNubCore from pubnub.request_handlers.base import BaseRequestHandler from pubnub.request_handlers.httpx import HttpxRequestHandler -from pubnub.request_handlers.requests import RequestsRequestHandler from pubnub.workers import SubscribeMessageWorker from pubnub.managers import SubscriptionManager, PublishSequenceManager, ReconnectionManager, TelemetryManager from pubnub import utils @@ -61,7 +60,7 @@ def __init__(self, config, custom_event_loop=None, subscription_manager=None, *, if isinstance(custom_request_handler, BaseRequestHandler): self._request_handler = custom_request_handler(self) else: - self._request_handler = RequestsRequestHandler(self) + self._request_handler = HttpxRequestHandler(self) if not subscription_manager: subscription_manager = EventEngineSubscriptionManager diff --git a/requirements-dev.txt b/requirements-dev.txt index b22c9a38..70d1959c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,6 +5,8 @@ flake8 pytest pytest-asyncio httpx +requests +aiohttp cbor2 behave vcrpy diff --git a/setup.py b/setup.py index 4511e64f..afbd1e8e 100644 --- a/setup.py +++ b/setup.py @@ -34,6 +34,9 @@ install_requires=[ 'pycryptodomex>=3.3', 'httpx>=0.28', + 'httpx>=0.28', + 'requests>=2.4', + 'aiohttp', 'cbor2>=5.6' ], zip_safe=False, diff --git a/tests/integrational/asyncio/test_file_upload.py b/tests/integrational/asyncio/test_file_upload.py index 957fb76d..cd7d8c5c 100644 --- a/tests/integrational/asyncio/test_file_upload.py +++ b/tests/integrational/asyncio/test_file_upload.py @@ -106,10 +106,10 @@ async def test_send_and_download_file_encrypted_cipher_key(file_for_upload, file await pubnub.stop() -@pn_vcr.use_cassette( - "tests/integrational/fixtures/asyncio/file_upload/send_and_download_encrypted_file_crypto_module.json", - filter_query_parameters=['uuid', 'l_file', 'pnsdk'], serializer='pn_json' -) +# @pn_vcr.use_cassette( +# "tests/integrational/fixtures/asyncio/file_upload/send_and_download_encrypted_file_crypto_module.json", +# filter_query_parameters=['uuid', 'l_file', 'pnsdk'], serializer='pn_json' +# ) @pytest.mark.asyncio(loop_scope="module") async def test_send_and_download_encrypted_file_crypto_module(file_for_upload, file_upload_test_data): pubnub = PubNubAsyncio(pnconf_enc_env_copy())