<commit_before># -*- coding: utf-8 -*-
# Copyright 2017 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp.tests import common


class TestAccountCostCenter(common.TransactionCase):

    def setUp(self):
        super(TestAccountCostCenter, self).setUp()

        self.Account = self.env['account.account']
        self.CostCenter = self.env['account.cost.center']
        self.InvLine = self.env['account.invoice.line']
        self.Invoice = self.env['account.invoice']

        self.acc_rec = self.env.ref('account.data_account_type_receivable')
        self.acc_exp = self.env.ref('account.data_account_type_expenses')
        self.invoice_account = self.Account.search([
            ('user_type_id', '=', self.acc_rec.id)
        ], limit=1).id<commit_msg>Code refactoring, module 'account_cost_center'<commit_after># -*- coding: utf-8 -*-
# Copyright 2017 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo.tests import common


class TestAccountCostCenter(common.TransactionCase):

    def setUp(self):
        super(TestAccountCostCenter, self).setUp()

        self.Account = self.env['account.account']
        self.CostCenter = self.env['account.cost.center']
        self.InvLine = self.env['account.invoice.line']
        self.Invoice = self.env['account.invoice']

        self.acc_rec = self.env.ref('account.data_account_type_receivable')
        self.acc_exp = self.env.ref('account.data_account_type_expenses')
        self.invoice_account = self.Account.search([
            ('user_type_id', '=', self.acc_rec.id)
        ], limit=1).id
{'fraction_non_alphanumeric': 0.14869668246445497, 'fraction_numerical': 0.009478672985781991, 'mean_word_length': 3.286802030456853, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1779905', 'n_tokens_mistral': 563, 'n_tokens_neox': 541, 'n_words': 80}