Open z0z0r4 opened 1 year ago
test 这坨说实话很无语...是不是可以直接
test
async def test_a_User_get_user_info(): return await u.get_user_info()
换成
result["user"]["get_user_info"] = await u.get_user_info()
这样之类的吗...总觉得定义个函数完全没意义, 以及实际上好像也没法单独测试一个模块
Usage: python -m tests.main [options] Options: -m <模块名>: 运行指定测试脚本 -a: 运行所有测试脚本(以 test_ 开头的)
PS D:\projects\z0z0r4-bilibili-api> python -m tests.test_user PS D:\projects\z0z0r4-bilibili-api>
根本没有调用...只能 python -m tests.main -a
python -m tests.main -a
另外里面的 UID 之类的参数应该单独一个文件拉出来方便修改,不然换测试号得挨个翻
UID
没看过正经的库是咋测试的,没啥思路.jpg
Api 改完了我都根本没法测试
Api
python3 -m tests.main -m user
test
这坨说实话很无语...是不是可以直接换成
这样之类的吗...总觉得定义个函数完全没意义,
以及实际上好像也没法单独测试一个模块根本没有调用...只能python -m tests.main -a
另外里面的
UID
之类的参数应该单独一个文件拉出来方便修改,不然换测试号得挨个翻没看过正经的库是咋测试的,没啥思路.jpg