2
我在Win7上使用Python 3.3,我对测试和py.test相当陌生。 我有一个简单的测试运行,虽然我可以在命令行中试图用简单的线条来调用它,当调用无法从命令行调用py.test <module_name> .py?
$ python -m pytest testing.py
运行
$ py.test testing.py
返回:
'py.test' is not recognized as an internal or external command,
operable program, or batch file
我是否需要将py.test源文件夹放在与我的程序相同的位置,还是我做了某些不正确的事情?