async test patterns for Pytest
· You can await calls to things like sleep functions, network sockets and HTTP requests without holding the GIL. Once you've implemented an async API for your methods, you increasingly find async creep, where now that methods need to be awaited, you start to increasingly make your methods and their callers async too. The problem then comes at testing time. I've found async testing in both ...