<commit_before># vim:fileencoding=utf8:et:ts=4:sts=4:sw=4:ft=python

"""
Enables ./setup.py test
http://gremu.net/blog/2010/enable-setuppy-test-your-django-apps/
"""

import os
import sys

os.environ['DJANGO_SETTINGS_MODULE'] = 'okupy.tests.settings'
test_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, test_dir)

from django.test.utils import get_runner
from django.conf import settings


def runtests():
    TestRunner = get_runner(settings)
    test_runner = TestRunner(verbosity=1, interactive=True)
    failures = test_runner.run_tests(['tests'])
    sys.exit(bool(failures))
<commit_msg>increase tests verbosity to 2<commit_after># vim:fileencoding=utf8:et:ts=4:sts=4:sw=4:ft=python

"""
Enables ./setup.py test
http://gremu.net/blog/2010/enable-setuppy-test-your-django-apps/
"""

import os
import sys

os.environ['DJANGO_SETTINGS_MODULE'] = 'okupy.tests.settings'
test_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, test_dir)

from django.test.utils import get_runner
from django.conf import settings


def runtests():
    TestRunner = get_runner(settings)
    test_runner = TestRunner(verbosity=2, interactive=True)
    failures = test_runner.run_tests(['tests'])
    sys.exit(bool(failures))

{'fraction_non_alphanumeric': 0.14553990610328638, 'fraction_numerical': 0.01643192488262911, 'mean_word_length': 5.626943005181347, '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': '1037801', 'n_tokens_mistral': 475, 'n_tokens_neox': 466, 'n_words': 72}