File: test_item_is_async.rst

package info (click to toggle)
python-pytest-asyncio 0.25.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 656 kB
  • sloc: python: 3,108; makefile: 26; sh: 1
file content (7 lines) | stat: -rw-r--r-- 294 bytes parent folder | download
1
2
3
4
5
6
7
=======================================
How to tell if a test function is async
=======================================
Use ``pytest_asyncio.is_async_item`` to determine if a test item is asynchronous and managed by pytest-asyncio.

.. include:: test_item_is_async_example.py
    :code: python