Giter VIP home page Giter VIP logo

Comments (4)

miguelgrinberg avatar miguelgrinberg commented on June 2, 2024 2

@kloczek the same warnings exist in the official builds. I will look at them.

from python-socketio.

miguelgrinberg avatar miguelgrinberg commented on June 2, 2024

See tox.ini for the list of packages that need to be installed for unit tests.

from python-socketio.

kloczek avatar kloczek commented on June 2, 2024

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.

kloczek avatar kloczek commented on June 2, 2024

Thank you for the confirmation 👍

from python-socketio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.