Skip to content

--asyncio-mode=auto don't find static tests #265

Closed
@PerchunPak

Description

@PerchunPak

Full log

C:\Users\perch\Desktop\programming\PingerBot>pytest --no-cov --asyncio-mode=auto
================================================= test session starts =================================================
platform win32 -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: C:\Users\perch\Desktop\programming\PingerBot
plugins: asyncio-0.17.1, cov-3.0.0
asyncio: mode=auto
collected 83 items

tests\test_cmd_add.py .......                                                                                    [  8%]
tests\test_cmd_alias.py s.......                                                                                 [ 18%]
tests\test_cmd_motd.py ......                                                                                    [ 25%]
tests\test_cmd_other.py ........                                                                                 [ 34%]
tests\test_cmd_ping.py .........                                                                                 [ 45%]
tests\test_cmd_stat.py ..............                                                                            [ 62%]
tests\test_database.py sssssssssssssssss                                                                         [ 83%]
tests\test_metods_for_commands.py sss.ss........                                                                 [100%]

================================================== warnings summary ===================================================
tests/test_cmd_alias.py: 1 warning
tests/test_database.py: 17 warnings
tests/test_metods_for_commands.py: 5 warnings
  C:\Users\perch\AppData\Local\Programs\Python\Python39\lib\site-packages\_pytest\python.py:172: 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)))

-- Docs: https://docs.pytest.org/en/stable/warnings.html
==================================== 60 passed, 23 skipped, 23 warnings in 18.39s =====================================

P.S. My computer is 64bit, I don't know why it is thinking that 32.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions