Closed piraz closed 1 year ago
From tornado v6.2.0b1:
.AsyncTestCase
(and.AsyncHTTPTestCase
) are deprecated. Useunittest.IsolatedAsyncioTestCase
instead.
Let's get the ProcessLauncherTestCase using the right base class.
Maybe we can use this https://stackoverflow.com/a/46324983/2887989.
Tests are failing on Python 3.11.
Fixed by: #428
The best as faster way to test a firenado application is running a ProcessLauncher against a fixture application.
We use this approach testing with behave. The
behave.api.async_step.async_run_until_complete
has no problem with asynchronous pexpect execution we just need to wait a little to keep the loop running.This will be an initial approach but I think that maintaining the ioloop running on the test case class context instead of the setUp/teardown will remove the extra asynchronous sleep call.