Skip to content

Commit

Permalink
missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Dec 17, 2024
1 parent f284dd5 commit 05c8e5b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 1 addition & 2 deletions pubnub/pubnub_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ flake8
pytest
pytest-asyncio
httpx
requests
aiohttp
cbor2
behave
vcrpy
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions tests/integrational/asyncio/test_file_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 05c8e5b

Please sign in to comment.