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

I followed the application to run the pylon project tests:

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

But when I run:

 nosetests --with-pylons test.ini

The error is reported:

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

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

Why doesn't nosetests know --with-pylonshow to fix it?

+5
source share
4 answers

I have never used --with-pylons. When I enter the project directory, it nosetestsdoes the job without any parameters.

I am on Linux, with the corresponding virtualenv being activated. It may be different from Windows.

-2
source

Pylons 1.0.1, Pylons.

, entry_points setup.py:

[nose.plugins]
pylons = pylons.test:PylonsPlugin
+9

, . , (, apt-get install python-nose), Pylons . :

  • Pylons , .
  • (easy_install -U nose )
+3

pip, ​​ 1.0.1rc1. -. 1.0.

pip pip install pylons == 1.0

I had the same problem and found a solution here https://github.com/LearningRegistry/LearningRegistry/issues/162

0
source

All Articles