views:

48

answers:

1

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?

+1  A: 

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.

Antoine Leclair
@Antoine, many thanks to you. It's just because I add virtual env when installing pylons, but not active it when testing. I just deleted the pylons, and use `easy_install pylons`(no virtual env) to install pylons again. This time, `nosetests --with-pylons` works well, and I can test the models now. Thank you very much.
Freewind