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: 3 months ago 
        JSON representation
    
Unit testing asyncio code
- Host: GitHub
- URL: https://github.com/miguelgrinberg/asyncio-testing
- Owner: miguelgrinberg
- License: mit
- Created: 2017-02-08T07:36:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-06T20:59:55.000Z (over 8 years ago)
- Last Synced: 2024-05-22T09:00:42.081Z (over 1 year ago)
- Topics: async-await, async-python, asyncio, mock, python3, unit-testing, unittest
- Language: Python
- Size: 2.93 KB
- Stars: 27
- Watchers: 5
- Forks: 5
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
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