直接运行生成的pytest脚本,一直报 Python names 不合法 #1695
Unanswered
sunenmin
asked this question in
2 - 答疑(Q&A)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
生成pytest脚本的命令
hrp convert --from-har demo1/har/autopilot.har --to-pytest
直接运行的时候报错:
testcases/autopilot_test.py:None (testcases/autopilot_test.py)
ImportError while importing test module '/Users/sunenmin/Desktop/httprunner/demo1/testcases/autopilot_test.py'.
Hint: make sure your test modules/packages have valid Python names.
但是直接使用 hrp pytest demo1/testcases/autopilot_test.py 是可以正常运行的
Beta Was this translation helpful? Give feedback.
All reactions