<commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

from django.test import TestCase

from ..admin.user import TeamListFilter, UserAdmin
from model_mommy import mommy


class UserTest(TestCase):

    DEV_NAME = "Dev_User"
    DBA_NAME = "DBA_User"
    WITHOUT_TEAM_NAME = "New_User"
    PASSWORD = "<PASSWORD>"

    def setUp(self):
        # self.role = Role.objects.get_or_create(name="fake_role")[0]
        self.role = mommy.make_recipe('account.role')
        # self.organization = Organization.objects.get_or_create(
        #     name='fake_organization')[0]
        self.organization = mommy.make('Organization')

        # self.team_dba = Team.objects.get_or_create(
        #     name="team_dba",
        #     role=self.role,
        #     organization=self.organization
        # )[0]
        self.team_dba = mommy.make_recipe(
            'account.team',
            role=self.role,
            organization=self.organization
        )
        # self.team_dev = Team.objects.get_or_create(<commit_msg>Fix test_user<commit_after># -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals

from django.test import TestCase
from django.contrib.auth.models import User

from ..admin.user import TeamListFilter, UserAdmin
from model_mommy import mommy


class UserTest(TestCase):

    DEV_NAME = "Dev_User"
    DBA_NAME = "DBA_User"
    WITHOUT_TEAM_NAME = "New_User"
    PASSWORD = "<PASSWORD>"

    def setUp(self):
        # self.role = Role.objects.get_or_create(name="fake_role")[0]
        self.role = mommy.make_recipe('account.role')
        # self.organization = Organization.objects.get_or_create(
        #     name='fake_organization')[0]
        self.organization = mommy.make('Organization')

        # self.team_dba = Team.objects.get_or_create(
        #     name="team_dba",
        #     role=self.role,
        #     organization=self.organization
        # )[0]
        self.team_dba = mommy.make_recipe(
            'account.team',
            role=self.role,
            organization=self.organization
        )
        # self.team_dev = Team.objects.get_or_create(
{'fraction_non_alphanumeric': 0.1123959296947271, 'fraction_numerical': 0.0037002775208140612, 'mean_word_length': 2.635294117647059, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2114112', 'n_tokens_mistral': 703, 'n_tokens_neox': 677, 'n_words': 114}