Why doesn't nose see my plugin?

Roy Smith roy at panix.com
Tue Jun 11 22:18:43 EDT 2013


In article 
<0d704515-46c9-486a-993c-ff5add3c926d at rh15g2000pbb.googlegroups.com>,
 alex23 <wuwei23 at gmail.com> wrote:

> On Jun 12, 11:43 am, Roy Smith <r... at panix.com> wrote:
> > Just to see what would happen, I tried changing it to:
> >
> >     entry_points = {
> >         'nose.plugins.1.3.0': ['mongoreporter =
> > testing.nose.mongo_reporter.MongoReporter'],
> >         },
> >
> > didn't appear to make any difference.
> 
> Yeah, reading some more it looks like it's referring to the version of
> the plugin API and not of nose itself, sorry for the mislead.

Thanks anyway.

In the meantime, I've worked around the problem by puttingL

if __name__ == '__main__':
    nose.main(addplugins=[MongoReporter()])

in my test file, so at least the setuptools issue isn't a blocker for 
continuing to work on the plugin.



More information about the Python-list mailing list