<commit_before>import unittest

from django.contrib.auth.models import User

from liveblog.models import LiveBlogEntry
from blog.models import Entry

from markdown import markdown

class LiveBlogTestCase(unittest.TestCase):

    text = 'This is a test liveblog entry **with bold text**'

    def setUp(self):
        self.user = User.objects.create_user(
            'testuser',
            '<EMAIL>',
            '<PASSWORD>'
        )<commit_msg>Changed tests to use blogging app specified in settings.py rather than a hardcoded module.<commit_after>import unittest

from django.conf import settings
from django.contrib.auth.models import User

from liveblog.models import LiveBlogEntry
#from blog.models import Entry

from markdown import markdown

blog = __import__(settings.BLOG_APP)
Entry = blog.models.__getattribute__(settings.BLOG_ENTRY_MODEL)

class LiveBlogTestCase(unittest.TestCase):

    text = 'This is a test liveblog entry **with bold text**'

    def setUp(self):
        self.user = User.objects.create_user(
            'testuser',
            '<EMAIL>',
            '<PASSWORD>'
        )
{'fraction_non_alphanumeric': 0.08476104598737602, 'fraction_numerical': 0.0, 'mean_word_length': 3.269230769230769, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4678245', 'n_tokens_mistral': 313, 'n_tokens_neox': 307, 'n_words': 95}