When rasa images use python over 3.8, enforce it in project.toml and remove dependency on asynctest, which allows to use patch decorators with coroutines (async test methods). It doesn't solve the problem (from what I tested) with patch.dict decorators but if only thoses to implement as with, the tests are still readable.