Search code examples
pylonsnosetests

nosetests --with-pylons test.ini => Error: no such option: --with-pylons


I followed the application to run the tests of pylons project:

http://pylonshq.com/docs/en/0.9.7/i18n/#testing-the-application

But when I run:

 nosetests --with-pylons test.ini

It reports an error:

E:\pylons\helloworld>nosetests --with-pylons test.ini
Usage: nosetests-script.py [options]

nosetests-script.py: error: no such option: --with-pylons

Why nosetests doesn't know the --with-pylons, how to fix it?


Solution

  • I never used --with-pylons. When I am in the directory of the project, nosetests does the job without any parameters.

    I'm on Linux, with the proper virtualenv activated. Maybe it's different on Windows.