Mocking Asyncio Subprocess in Python with pytest

What this article is and is NOT

Background

The Code

├── Pipfile
├── Pipfile.lock
├── src
│ ├── __init__.py
│ └── utils
│ ├── AsyncioExample.py
│ └── __init__.py
└── test
└── utils
├── TestAsyncioExample.py
├── __init__.py
└── snapshots
├── __init__.py
└── snap_TestAsyncioExample.py
Pipfile
AsyncioExample.py
TestAsyncioExample.py
snap_TestAsyncioExample.py

Wrapping Up

Update (2020–06–20)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store