擅长:python、mysql、java
<p><a href="https://github.com/pytest-dev/pytest-asyncio" rel="noreferrer">pytest-asyncio</a>看起来很有前途:</p>
<pre><code>@pytest.mark.asyncio
async def test_some_asyncio_code():
res = await library.do_something()
assert b'expected result' == res
</code></pre>