Skip to content

Commit 05c8e5b

Browse files
author
Sebastian Molenda
committed
missing dependencies
1 parent f284dd5 commit 05c8e5b

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

pubnub/pubnub_asyncio.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from pubnub.pubnub_core import PubNubCore
2121
from pubnub.request_handlers.base import BaseRequestHandler
2222
from pubnub.request_handlers.httpx import HttpxRequestHandler
23-
from pubnub.request_handlers.requests import RequestsRequestHandler
2423
from pubnub.workers import SubscribeMessageWorker
2524
from pubnub.managers import SubscriptionManager, PublishSequenceManager, ReconnectionManager, TelemetryManager
2625
from pubnub import utils
@@ -61,7 +60,7 @@ def __init__(self, config, custom_event_loop=None, subscription_manager=None, *,
6160
if isinstance(custom_request_handler, BaseRequestHandler):
6261
self._request_handler = custom_request_handler(self)
6362
else:
64-
self._request_handler = RequestsRequestHandler(self)
63+
self._request_handler = HttpxRequestHandler(self)
6564

6665
if not subscription_manager:
6766
subscription_manager = EventEngineSubscriptionManager

requirements-dev.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ flake8
55
pytest
66
pytest-asyncio
77
httpx
8+
requests
9+
aiohttp
810
cbor2
911
behave
1012
vcrpy

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
install_requires=[
3535
'pycryptodomex>=3.3',
3636
'httpx>=0.28',
37+
'httpx>=0.28',
38+
'requests>=2.4',
39+
'aiohttp',
3740
'cbor2>=5.6'
3841
],
3942
zip_safe=False,

tests/integrational/asyncio/test_file_upload.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ async def test_send_and_download_file_encrypted_cipher_key(file_for_upload, file
106106
await pubnub.stop()
107107

108108

109-
@pn_vcr.use_cassette(
110-
"tests/integrational/fixtures/asyncio/file_upload/send_and_download_encrypted_file_crypto_module.json",
111-
filter_query_parameters=['uuid', 'l_file', 'pnsdk'], serializer='pn_json'
112-
)
109+
# @pn_vcr.use_cassette(
110+
# "tests/integrational/fixtures/asyncio/file_upload/send_and_download_encrypted_file_crypto_module.json",
111+
# filter_query_parameters=['uuid', 'l_file', 'pnsdk'], serializer='pn_json'
112+
# )
113113
@pytest.mark.asyncio(loop_scope="module")
114114
async def test_send_and_download_encrypted_file_crypto_module(file_for_upload, file_upload_test_data):
115115
pubnub = PubNubAsyncio(pnconf_enc_env_copy())

0 commit comments

Comments
 (0)