You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds `AsyncTestCase` and `AsyncViewTestCase` for testing asyncio
coroutines, which interact with Sublime Text.
Both classes work pretty much like `DeferrableTestCase`, except they can
`await` coroutines.
Initial implementation inherits `AsyncTestCase` from `DeferrableTestCase` to
explicitly provide a new API with async coroutine support. Each coroutine
function is scheduled for execution in `sublime_aio`'s default event loop.
Underlying test method awaits completion via `yield future.done` to enable
coroutines to run synchronous tasks in main thread via
`sublime.set_timeout()`.
Yielding from async coroutines is not supported.
0 commit comments