pylons
pylons copied to clipboard
nosetests fails
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'
I am also affected by this problem.
Pylons 1.0 works well with nose.
Is this likely to be fixed? It pretty much rules out upgrading for me.
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
""",