placeTW / discord-bot

The placeTW discord bot
5 stars 0 forks source link

Pytest and asyncio warning #87

Closed chanomkaimuk closed 3 months ago

chanomkaimuk commented 3 months ago

This is the error message after running poetry run python -m pytest tests/ -v -s:

tests/test_shiba.py: 1 warning
  /home/runner/work/discord-bot/discord-bot/.venv/lib/python3.11/site-packages/_pytest/python.py:151: 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)))
chanomkaimuk commented 3 months ago

Fixed with #88