<commit_before>import pytest
from model_mommy import mommy
from core.models import *


@pytest.mark.django_db
def test_super_user():
    a = TimtecUser.objects.get(username='a<PASSWORD>')
    assert a.is_superuser


@pytest.mark.django_db
def test_lesson_counts(settings):
    lesson = mommy.make('Lesson')
    video = mommy.make('Video')
    activity = mommy.make('Activity')
    mommy.make('Unit', lesson=lesson, video=video, activity=activity)
    mommy.make('Unit', lesson=lesson, video=None, activity=activity)
    mommy.make('Unit', lesson=lesson, video=video, activity=None)
    mommy.make('Unit', lesson=lesson, video=video, activity=None)

    assert lesson.activity_count() == 2
    assert lesson.video_count() == 3
    assert lesson.unit_count() == 4<commit_msg>update test to use the right username<commit_after>import pytest
from model_mommy import mommy
from core.models import *


@pytest.mark.django_db
def test_super_user():
    a = TimtecUser.objects.get(username='abcd')
    assert a.is_superuser


@pytest.mark.django_db
def test_lesson_counts(settings):
    lesson = mommy.make('Lesson')
    video = mommy.make('Video')
    activity = mommy.make('Activity')
    mommy.make('Unit', lesson=lesson, video=video, activity=activity)
    mommy.make('Unit', lesson=lesson, video=None, activity=activity)
    mommy.make('Unit', lesson=lesson, video=video, activity=None)
    mommy.make('Unit', lesson=lesson, video=video, activity=None)

    assert lesson.activity_count() == 2
    assert lesson.video_count() == 3
    assert lesson.unit_count() == 4
{'fraction_non_alphanumeric': 0.13307741522712732, 'fraction_numerical': 0.003838771593090211, 'mean_word_length': 4.946768060836502, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '770050', 'n_tokens_mistral': 526, 'n_tokens_neox': 517, 'n_words': 105}