Testing

qtrio.host(test_function)

Decorate your tests that you want run with a Trio guest and a Qt Host.

Note

Presently the test is required to specify the request fixture so this decorator can intercept and use it.

Warning

The interface for specifying tests to run in this way will likely change a lot. Try to keep up. :|

Parameters

test_function (Callable[…, Awaitable[None]]) – The pytest function to be tested.