Questions tagged «pylons»

5
如何在Pylons中使用鼻子进行单个测试
我在test / functional目录中有一个带有一堆测试的Pylons 1.0应用程序。我得到的测试结果很奇怪,我只想运行一个测试。鼻子文档说我应该能够在命令行中传递测试名称,但是无论我做什么我都会得到ImportErrors 例如: nosetests -x -s sometestname 给出: Traceback (most recent call last): File "/home/ben/.virtualenvs/tsq/lib/python2.6/site-packages/nose-0.11.4-py2.6.egg/nose/loader.py", line 371, in loadTestsFromName module = resolve_name(addr.module) File "/home/ben/.virtualenvs/tsq/lib/python2.6/site-packages/nose-0.11.4-py2.6.egg/nose/util.py", line 334, in resolve_name module = __import__('.'.join(parts_copy)) ImportError: No module named sometestname 我收到相同的错误 nosetests -x -s appname.tests.functional.testcontroller 正确的语法是什么?

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.