<commit_before>from os.path import dirname, join
MIU_TEST_ROOT = dirname(__file__)

SITE_ID = 1 # @@@ workaround bug in trunk create_test_db

INSTALLED_APPS = [
    "django.contrib.sites", # @@@ workaround bug in trunk create_test_db
    "markitup",
    "tests"]

from django import VERSION

if VERSION < (1, 2):
    DATABASE_ENGINE = "sqlite3"
else:
    DATABASES = {
        "default": {
            "ENGINE": "django.db.backends.sqlite3"
            }
        }

MEDIA_URL = "/media/"
MEDIA_ROOT = join(dirname(MIU_TEST_ROOT), "markitup", "media")

STATIC_URL = "/static/"
STATIC_ROOT = MEDIA_ROOT

ROOT_URLCONF = "tests.urls"

MARKITUP_FILTER = ("tests.filter.testfilter", {"arg": "replacement"})
<commit_msg>Remove workaround in test runner for Django issue #15850 now that it is fixed.<commit_after>from os.path import dirname, join
MIU_TEST_ROOT = dirname(__file__)

INSTALLED_APPS = [
    "markitup",
    "tests"]

from django import VERSION

if VERSION < (1, 2):
    DATABASE_ENGINE = "sqlite3"
else:
    DATABASES = {
        "default": {
            "ENGINE": "django.db.backends.sqlite3"
            }
        }

MEDIA_URL = "/media/"
MEDIA_ROOT = join(dirname(MIU_TEST_ROOT), "markitup", "media")

STATIC_URL = "/static/"
STATIC_ROOT = MEDIA_ROOT

ROOT_URLCONF = "tests.urls"

MARKITUP_FILTER = ("tests.filter.testfilter", {"arg": "replacement"})

{'fraction_non_alphanumeric': 0.1323529411764706, 'fraction_numerical': 0.010294117647058823, 'mean_word_length': 3.506622516556291, 'pattern_counts': {'":': 6, '<': 5, '<?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': '1321984', 'n_tokens_mistral': 512, 'n_tokens_neox': 488, 'n_words': 108}