<commit_before># @ 2021 KMEE - kmee.com.br
#   <NAME> <<EMAIL>>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

import unittest

from odoo.tests import TransactionCase
from odoo.exceptions import ValidationError


class TestPaymentMode(TransactionCase):

    @classmethod
    def setUpClass(cls):
        super().setUpClass()

        if not cls.env['account.account'].search([]):
            raise unittest.SkipTest('No accounts defined')

        cls.company = cls.env.ref('base.main_company')
        cls.journal_c1 = cls.env['account.journal'].create({
            'name': 'Journal 1',
            'code': 'J1',
            'type': 'bank',
            'company_id': cls.company.id,
        })

        cls.account = cls.env['account.account'].search([
            ('reconcile', '=', True),
            ('company_id', '=', cls.company.id)
        ], limit=1)

        cls.type_240 = cls.env.ref(
            'l10n_br_account_payment_order.payment_mode_type_cnab240')

        cls.type_400 = cls.env.ref(
            'l10n_br_account_payment_order.payment_mode_type_cnab400')
<commit_msg>[FIX] Test class definition.<commit_after># @ 2021 KMEE - kmee.com.br
#   <NAME> <<EMAIL>>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

import unittest

from odoo.tests import SavepointCase
from odoo.exceptions import ValidationError


class TestPaymentMode(SavepointCase):

    @classmethod
    def setUpClass(cls):
        super().setUpClass()

        if not cls.env['account.account'].search([]):
            raise unittest.SkipTest('No accounts defined')

        cls.company = cls.env.ref('base.main_company')
        cls.journal_c1 = cls.env['account.journal'].create({
            'name': 'Journal 1',
            'code': 'J1',
            'type': 'bank',
            'company_id': cls.company.id,
        })

        cls.account = cls.env['account.account'].search([
            ('reconcile', '=', True),
            ('company_id', '=', cls.company.id)
        ], limit=1)

        cls.type_240 = cls.env.ref(
            'l10n_br_account_payment_order.payment_mode_type_cnab240')

        cls.type_400 = cls.env.ref(
            'l10n_br_account_payment_order.payment_mode_type_cnab400')

{'fraction_non_alphanumeric': 0.14375279892521273, 'fraction_numerical': 0.02328705776981639, 'mean_word_length': 2.5070643642072215, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3105191', 'n_tokens_mistral': 762, 'n_tokens_neox': 732, 'n_words': 123}