Decided to upgrade Python version from 3.10 to 3.11, previously we have used asynctest.TestCase
which has setUp
and tearDown
methods and supports testing of async code.
I've checked unittest.IsolatedAsyncioTestCase
but it uses different event loops for each test that causes usage of different sessions that we can't afford right now.
We are using async setUp
/ asyncSetUp
to initialise dependencies and create test data so this feature is required.
Is there any analogs? Or what you're using for testing complex systems with python 3.11 / 3.12?
p.s asynctest.TestCase
is not supported in 3.11+
I want to know is there any expertise in testing async code with python 3.11/3.12. Maybe some one also faced with my problem.