I demonstrate how you can use pytest’s fixture system and the plug-in pytest-asyncio to reduce the boilerplate code required for testing networking libraries.
Pytest currently offers no helpers for testing (asyncio) coroutines. Its powerful plug-in architecture allows you fix that and write elegant tests for coroutines.
This is the second part of the series Designing and Testing PyZMQ Applications. In the first part, I wrote about designing a PyZMQ application, so this time it’s all …
page 1 of 1