Skip to content

Fix tests are being skipped#86

Draft
DCSBL wants to merge 1 commit intomainfrom
DCSBL-patch-2
Draft

Fix tests are being skipped#86
DCSBL wants to merge 1 commit intomainfrom
DCSBL-patch-2

Conversation

@DCSBL
Copy link
Copy Markdown
Collaborator

@DCSBL DCSBL commented Jul 27, 2023

Apparently, the tests never ran in CI..

tests/test_sensor.py ssss                                                [100%]

=============================== warnings summary ===============================
tests/test_sensor.py::test_sensors
tests/test_sensor.py::test_sensors_get_data_of_current_hour
tests/test_sensor.py::test_sensors_no_data_for_tomorrow
tests/test_sensor.py::test_sensors_hour_price_attr
  /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/_pytest/python.py:184: PytestUnhandledCoroutineWarning: async def functions are not natively supported and have been skipped.
  You need to install a suitable plugin for your async framework, for example:
    - anyio
    - pytest-asyncio
    - pytest-tornasync
    - pytest-trio
    - pytest-twisted
    warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid)))

All tests are skipped without warning. by adding asyncio we enable them and see.. they fail!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant