Tryton 6.8: infos tests, select removed

This commit is contained in:
Frederik Jaeckel 2023-06-16 14:35:03 +02:00
parent fc1975f0ad
commit 07b339914d
7 changed files with 19 additions and 35 deletions

View file

@ -2,17 +2,3 @@
# This file is part of the cashbook-module from m-ds for Tryton.
# The COPYRIGHT file at the top level of this repository contains the
# full copyright notices and license terms.
import trytond.tests.test_tryton
import unittest
from trytond.modules.cashbook_report.tests.test_report import ReportTestCase
__all__ = ['suite']
def suite():
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(ReportTestCase))
return suite

View file

@ -7,7 +7,7 @@ from trytond.tests.test_tryton import with_transaction, activate_module
from trytond.pool import Pool
from trytond.transaction import Transaction
from trytond.exceptions import UserError
from trytond.modules.cashbook_investment.tests import \
from trytond.modules.cashbook_investment.tests.test_module import \
CashbookInvestmentTestCase
from datetime import date
from decimal import Decimal
@ -705,8 +705,8 @@ class ReportTestCase(CashbookInvestmentTestCase):
# must fail
self.assertRaisesRegex(
UserError,
'A value is required for field "Data type" in ' +
'"Evaluation Line Relation".',
'A value is required for field "Data type" in "None" ' +
'of "Evaluation Line Relation".',
Evaluation.create,
[{
'name': 'Evaluation 1',
@ -723,8 +723,8 @@ class ReportTestCase(CashbookInvestmentTestCase):
# must fail
self.assertRaisesRegex(
UserError,
'A value is required for field "Cashbook" in ' +
'"Evaluation Line Relation".',
'A value is required for field "Cashbook" in "None" ' +
'of "Evaluation Line Relation".',
Evaluation.create,
[{
'name': 'Evaluation 3',