erikrose/nose-progressive — Issue #30: Discovery breaks when excluding tests
Author: dcramer
Created: 2011-12-15 01:11:43+00:00
State: open

We have a modified version of django-nose, and we override things like "wantMethod", and sometimes return False. If that statement is hit, it causes progressive to discover no tests. Removing the return False statements allows progressive to work correctly.

e.g. we have code like this in our plugin:

```
def wantClass(self, cls):
if issubclass(cls, TransactionTestCase):
self.needs_db = True

if cls in self._registry:
return False
self._registry.add(cls)

def wantMethod(self, method):
if issubclass(method.im_class, TransactionTestCase):
self.needs_db = True

if method in self._registry:
return False
self._registry.add(method)

def wantFunction(self, function):
if function in self._registry:
return False
self._registry.add(function)
```