pylons icon indicating copy to clipboard operation
pylons copied to clipboard

nosetests fails

Open tholo opened this issue 13 years ago • 4 comments

With Pylons 1.0.1rc1 running nosetests on a Pylons project no longer works -- seems the nose plugin is no longer registered, and so nosetests fails saying "--with-nose" is not a recognized option.

This happens in a new, clean virtual environment with an unmodified "pylons_minimal" template, as well:

nose.config.ConfigError: Error reading config file 'setup.cfg': no such option 'with-pylons'

tholo avatar Feb 18 '12 18:02 tholo

I am also affected by this problem.

ferrouswheel avatar Mar 13 '12 00:03 ferrouswheel

Pylons 1.0 works well with nose.

alswl avatar Mar 13 '12 00:03 alswl

Is this likely to be fixed? It pretty much rules out upgrading for me.

daredevildave avatar Aug 23 '12 11:08 daredevildave

The nose plugin registration was removed from Pylons' own setup.py in this commit: da8c00cabc62ad7d6f3dc19ce75ad6a4025d39c0

A workaround is to add it to your own project's setup.py:

entry_points="""
[nose.plugins]
pylons = pylons.test:PylonsPlugin
""",

ronnix avatar Oct 27 '12 16:10 ronnix