I assume you are using Django 1.6, which changed the default test runner. CeleryTestSuiteRunner
inherits from Django's old DjangoTestSuiteRunner
, which runs tests from all installed apps, including the apps provided with Django, but does not discover tests outside of the tests
modules.
You could reimplement CeleryTestSuiteRunner
in your own test runner using the new DiscoverRunner
which will discover your tests as expected, e.g.:
from django.test.runner import DiscoverRunner
from djcelery.contrib.test_runner import _set_eager
class CeleryDiscoverRunner(DiscoverRunner):
def setup_test_environment(self, **kwargs):
_set_eager()
super(CeleryDiscoverRunner, self).setup_test_environment(**kwargs)