Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python manage.py runtest --report-args-help html执行报错 #62

Closed
xyd113 opened this issue Jul 4, 2019 · 1 comment
Closed

python manage.py runtest --report-args-help html执行报错 #62

xyd113 opened this issue Jul 4, 2019 · 1 comment

Comments

@xyd113
Copy link

xyd113 commented Jul 4, 2019

环境:
macOS: 10.14.5
python3.6
IDE:Pycharm

在manage.py同级目录执行命令python manage.py runtest --report-args-help html报如下错误。
Traceback (most recent call last):
File "manage.py", line 24, in
ManagementTools().run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/testbase/management.py", line 687, in run
cmds = self._load_cmds()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/testbase/management.py", line 640, in _load_cmds
cmds += self._load_cmd_from_module(sys.modules[name])
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/testbase/management.py", line 663, in _load_cmd_from_module
cmds.sort(lambda x, y:cmp_func(x.name, y.name))
TypeError: must use keyword argument for key function

@guyingzhao
Copy link

guyingzhao commented Jul 22, 2019

此问题已经修复过了, 参考 #50

请先行确认本地使用的版本是否最新,或者尝试执行

pip install -U qtaf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants