<commit_before>#!/usr/bin/env python
import sys
from optparse import OptionParser

from django.conf import settings

if not settings.configured:
    settings.configure(
        DATABASES = {
            'default': {
                'ENGINE': 'django.db.backends.sqlite3',
                'NAME': 'django_celery_rpc',
                'USER': '',
                'PASSWORD': '',
                'HOST': '',
                'PORT': '',
            }
        },

        INSTALLED_APPS=[
            'django.contrib.contenttypes',
            'celery_rpc',
            'celery_rpc.tests',
        ],
        ROOT_URLCONF='',
        DEBUG=False,
    )


from django_nose import NoseTestSuiteRunner


def runtests(*test_args, **kwargs):<commit_msg>Fix run tests with Celery<commit_after>#!/usr/bin/env python
import sys
from optparse import OptionParser

from django.conf import settings

if not settings.configured:
    settings.configure(
        DATABASES = {
            'default': {
                'ENGINE': 'django.db.backends.sqlite3',
                'NAME': ':memory:',
                'USER': '',
                'PASSWORD': '',
                'HOST': '',
                'PORT': '',
            }
        },

        INSTALLED_APPS=[
            'django.contrib.contenttypes',
            'celery_rpc',
            'celery_rpc.tests',
        ],
        ROOT_URLCONF='',
        DEBUG=True,

        CELERY_RPC_CONFIG = {
            'CELERY_ALWAYS_EAGER': True
        },
    )


from django_nose import NoseTestSuiteRunner


def runtests(*test_args, **kwargs):
{'fraction_non_alphanumeric': 0.12165605095541401, 'fraction_numerical': 0.0012738853503184713, 'mean_word_length': 1.6183333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7265065', 'n_tokens_mistral': 478, 'n_tokens_neox': 444, 'n_words': 84}