[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#886338: RFP: python3-pytest-asyncio -- pytest support for asyncio



Package: wnpp
Severity: wishlist

* Package name    : python3-pytest-asyncio
  Version         : 0.8.0
  Upstream Author : Tin "Tinche" Tvrtković  <tinchester@gmail.com>
* URL             : https://github.com/Tinche
* License         : Apache-2.0 ( https://github.com/pytest-dev/pytest-asyncio/blob/master/LICENSE )
  Programming Lang: Python
  Description     : pytest support for asyncio

pytest-asyncio is a library for testing asyncio (asynchronous input/output) code with pytest.

asyncio code is usually written in the form of coroutines, which makes it slightly more difficult to test using normal testing tools. pytest-asyncio provides useful fixtures and markers to make testing easier.

Features

* fixtures for creating and injecting versions of the asyncio event loop
* fixtures for injecting unused tcp ports
* pytest markers for treating tests as asyncio coroutines
* easy testing with non-default event loops
* support for async def fixtures and async generator fixtures
		    
It is also required by py-evm ( see RFP #884796 ).

Reply to: