Skip to content

优化体验;解决 bug;提升扩展性

Compare
Choose a tag to compare
@TommyLemon TommyLemon released this 24 Jul 16:52
· 26 commits to main since this release

新增支持暴露自定义函数来提高扩展性;
优化对构造函数的判断;

远程执行函数

新增自动识别 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
image

class 内成员函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L111-L112
image

async & await 协程异步函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L63-L67
image

异步回调函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L70-L83
image