优化体验;解决 bug;提升扩展性
新增支持暴露自定义函数来提高扩展性;
优化对构造函数的判断;
远程执行函数
新增自动识别 async def 函数,调用 asyncio.run 获取结果;
新增支持在 class 中写 @staticmethod 来获取实例的方法;
新增支持传参 args,替代 methodArgs 来简化传参;
解决 isinstance(obj, any) 报错 must be a type or tuple of types;
自动扫描函数
解决缺少和重复返回 class 和 function 信息;
效果
同步纯函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L39-L40
class 内成员函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L111-L112
async & await 协程异步函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L63-L67
异步回调函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L70-L83