Comments (4)
@kloczek the same warnings exist in the official builds. I will look at them.
from python-socketio.
See tox.ini for the list of packages that need to be installed for unit tests.
from python-socketio.
Looks like only missing module was websocket-client
and aiohttp
(looks like pytest-timeout
and requests
not been used)
Thank you for the hints 👍 😄
After add those module fixed pytest which now is finishing with exit 0 however I see some warnings
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-socketio-5.10.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-socketio-5.10.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-socketio-5.10.0
plugins: timeout-2.2.0
collected 570 items
tests/async/test_admin.py .......... [ 1%]
tests/async/test_client.py ....................................................................... [ 14%]
tests/async/test_manager.py .............................. [ 19%]
tests/async/test_namespace.py ..................... [ 23%]
tests/async/test_pubsub_manager.py .................................. [ 29%]
tests/async/test_server.py ......................................................................... [ 41%]
tests/async/test_simple_client.py ................ [ 44%]
tests/common/test_admin.py ......... [ 46%]
tests/common/test_client.py .................................................................................... [ 61%]
tests/common/test_manager.py ............................... [ 66%]
tests/common/test_middleware.py ... [ 67%]
tests/common/test_msgpack_packet.py .... [ 67%]
tests/common/test_namespace.py .................. [ 70%]
tests/common/test_packet.py ...................................... [ 77%]
tests/common/test_pubsub_manager.py .................................... [ 83%]
tests/common/test_server.py ............................................................................ [ 97%]
tests/common/test_simple_client.py ................ [100%]
===================================================================================== warnings summary ======================================================================================
tests/async/test_client.py::TestAsyncClient::test_send
/usr/lib64/python3.8/unittest/mock.py:526: RuntimeWarning: coroutine 'Event.wait' was never awaited
ret = self._get_child_mock(
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
tests/async/test_client.py::TestAsyncClient::test_trigger_event
/usr/lib64/python3.8/unittest/mock.py:2076: RuntimeWarning: coroutine 'Event.wait' was never awaited
self.name = name
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
tests/async/test_manager.py::TestAsyncManager::test_close_invalid_room
/home/tkloczko/rpmbuild/BUILD/python-socketio-5.10.0/tests/async/test_manager.py:195: RuntimeWarning: coroutine 'AsyncManager.close_room' was never awaited
self.bm.close_room('bar', '/foo')
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
tests/async/test_manager.py::TestAsyncManager::test_disconnect_with_callbacks
/usr/lib64/python3.8/unittest/mock.py:2030: RuntimeWarning: coroutine 'TestAsyncClient.test_wait_reconnect_successful.<locals>.fake_wait' was never awaited
setattr(_type, entry, MagicProxy(entry, self))
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================================================== 570 passed, 4 warnings in 128.87s (0:02:08) ========================================================================
from python-socketio.
Thank you for the confirmation 👍
from python-socketio.
Related Issues (20)
- The callback parameter in the emit method does not work
- SimpleClient does not exist (anymore?) HOT 3
- AsyncServer.enter_room() is not awaitable HOT 3
- Support for connection state recovery and related adapters HOT 3
- Need help with this reconnecting issue
- Flask-SocketIO does not handle Redis Sentinel failover with KombuManager HOT 2
- Clients never receive room emit - Gunicorn+Uvicorn/FastAPI/Redis with preload_app=True, workers>1 HOT 4
- In Python 3.12, AttributeError: 'called_once_with' is not a valid assertion HOT 3
- May need to remove "pip install aioredis" from the documentation
- `max_http_buffer_size` value seem ignored by the server HOT 14
- Implementing `__enter__`/`__exit__` on `Client` like `SimpleClient` HOT 2
- Request: type hints (e.g. for mypy) HOT 3
- sio.disconnect() will connect after a connection drop HOT 21
- Update documentation of usage with Gunicorn + gevent/eventlet HOT 5
- Wildcard / catch-all namespace for event handlers HOT 1
- Heroku Problems with Gevent (Request Timeout + Polling Hanging)
- Concurrent broadcasting HOT 2
- All connections stop processing events at the same time
- Session not found when using sio.transport(sid) due to wrong session id HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-socketio.