asfaltboy / SublimeTestPlier

run python tests quickly from within a project
https://packagecontrol.io/packages/Test%20Plier
MIT License
10 stars 4 forks source link

Support coroutines #29

Open asfaltboy opened 4 years ago

asfaltboy commented 4 years ago

Currently a test case written as a coroutine (e.g when using pytest-asyncio plugin) does not get picked up as a test function:

@pytest.mark.asyncio
async def test_some_asyncio_code():
    res = await library.do_something()
    assert b'expected result' == res

The above test is skipped when finding the function on row/column.