How do I run a single test with Nose in Pylons

后端 未结 6 1322
星月不相逢
星月不相逢 2021-01-29 23:09

I have a Pylons 1.0 app with a bunch of tests in the test/functional directory. I\'m getting weird test results and I want to just run a single test. The nose documentation say

6条回答
  •  生来不讨喜
    2021-01-29 23:41

    The following worked for me just well:

    nosetests test_file.py:method_name
    

    Note that my tests where not in a class. Test methods were in a single file.

提交回复
热议问题