Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miguelgrinberg/asyncio-testing

Unit testing asyncio code
https://github.com/miguelgrinberg/asyncio-testing

async-await async-python asyncio mock python3 unit-testing unittest

Last synced: 8 days ago
JSON representation

Unit testing asyncio code

Awesome Lists containing this project

README

        

# Testing asyncio code

This repository contains the examples featured in my blog article
[Unit Testing AsyncIO Code](https://blog.miguelgrinberg.com/post/unit-testing-asyncio-code).

Note that these tests work only on Python 3.5+.

To run the unit synchronous unit tests, use the following command:

$ python test_receive.py

To run the asynchronous unit tests, use the following command:

$ python test_async_receive.py