File: asynctestcase.rst

package info (click to toggle)
python-aiounittest 1.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208 kB
  • sloc: python: 436; makefile: 200; sh: 5
file content (7 lines) | stat: -rw-r--r-- 365 bytes parent folder | download
1
2
3
4
5
6
7
AsyncTestCase
=============

Extends :code:`unittest.TestCase` to support asynchronous tests. Currently the most common solution is to explicitly run :code:`asyncio.run_until_complete` with test case. Aiounittest :code:`AsyncTestCase` wraps it, to keep the test as clean and simple as possible.

.. autoclass:: aiounittest.AsyncTestCase
   :members: get_event_loop