Module ImportFrom alias alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str FunctionDef arguments args defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Call NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad keyword NameLoad attr NameLoad NameLoad Str decorator_list Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Expr Call NameLoad decorator_list decorator_list
N/A __future__ absolute_import unicode_literals django.conf settings N/A N/A django.test.runner DiscoverRunner N/A N/A N/A ImportError N/A django.test.simple DjangoTestSuiteRunner DiscoverRunner celery current_app celery.task Task djcelery.backends.database DatabaseBackend N/A USAGE Custom test runner to allow testing of celery delayed tasks.
 _set_eager N/A N/A N/A N/A N/A N/A settings CELERY_ALWAYS_EAGER True N/A N/A N/A current_app conf CELERY_ALWAYS_EAGER True N/A N/A settings CELERY_EAGER_PROPAGATES_EXCEPTIONS True N/A N/A N/A current_app conf CELERY_EAGER_PROPAGATES_EXCEPTIONS True N/A CeleryTestSuiteRunner N/A DiscoverRunner N/A N/A Django test runner allowing testing of celery delayed tasks.

    All tasks are run locally, not in a worker.

    To use this runner set ``settings.TEST_RUNNER``::

        TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner'

     setup_test_environment N/A N/A self N/A kwargs N/A N/A N/A _set_eager N/A N/A N/A N/A super CeleryTestSuiteRunner self setup_test_environment kwargs N/A N/A CeleryTestSuiteRunnerStoringResult N/A DiscoverRunner N/A N/A Django test runner allowing testing of celery delayed tasks,
    and storing the results of those tasks in ``TaskMeta``.

    Requires setting CELERY_RESULT_BACKEND = 'database'.

    USAGE:

    In ``settings.py``::

        TEST_RUNNER = '''
            djcelery.contrib.test_runner.CeleryTestSuiteRunnerStoringResult
        '''.strip()

     setup_test_environment N/A N/A self N/A kwargs N/A on_success_patched N/A N/A self retval task_id args kwargs N/A N/A N/A app N/A N/A current_app _get_current_object N/A N/A N/A N/A DatabaseBackend app app store_result task_id retval SUCCESS N/A N/A N/A Task on_success N/A classmethod on_success_patched N/A N/A N/A N/A super CeleryTestSuiteRunnerStoringResult self setup_test_environment kwargs N/A N/A settings CELERY_RESULT_BACKEND database N/A N/A _set_eager N/A N/A