Fix test bug.

This commit is contained in:
Bernat Brunet 2023-05-26 15:48:18 +02:00
parent fee1824623
commit 054245e8ee
1 changed files with 6 additions and 0 deletions

View File

@ -298,6 +298,7 @@ class AccountReportsTestCase(CompanyTestMixin, ModuleTestCase):
print_general_ledger.start.accounts = []
print_general_ledger.start.output_format = 'pdf'
print_general_ledger.start.all_accounts = False
print_general_ledger.start.final_accounts = False
_, data = print_general_ledger.do_print_(None)
# Full general_ledger
@ -338,6 +339,7 @@ class AccountReportsTestCase(CompanyTestMixin, ModuleTestCase):
print_general_ledger.start.parties = []
print_general_ledger.start.accounts = []
print_general_ledger.start.all_accounts = False
print_general_ledger.start.final_accounts = False
print_general_ledger.start.output_format = 'pdf'
_, data = print_general_ledger.do_print_(None)
records, parameters = GeneralLedgerReport.prepare(data)
@ -362,6 +364,7 @@ class AccountReportsTestCase(CompanyTestMixin, ModuleTestCase):
print_general_ledger.start.parties = []
print_general_ledger.start.accounts = []
print_general_ledger.start.all_accounts = False
print_general_ledger.start.final_accounts = False
print_general_ledger.start.output_format = 'pdf'
_, data = print_general_ledger.do_print_(None)
records, parameters = GeneralLedgerReport.prepare(data)
@ -389,6 +392,7 @@ class AccountReportsTestCase(CompanyTestMixin, ModuleTestCase):
print_general_ledger.start.parties = []
print_general_ledger.start.accounts = [expense.id]
print_general_ledger.start.all_accounts = False
print_general_ledger.start.final_accounts = False
print_general_ledger.start.output_format = 'pdf'
_, data = print_general_ledger.do_print_(None)
records, parameters = GeneralLedgerReport.prepare(data)
@ -412,6 +416,7 @@ class AccountReportsTestCase(CompanyTestMixin, ModuleTestCase):
print_general_ledger.start.parties = [customer1.id]
print_general_ledger.start.accounts = []
print_general_ledger.start.all_accounts = False
print_general_ledger.start.final_accounts = False
print_general_ledger.start.output_format = 'pdf'
_, data = print_general_ledger.do_print_(None)
records, parameters = GeneralLedgerReport.prepare(data)
@ -444,6 +449,7 @@ class AccountReportsTestCase(CompanyTestMixin, ModuleTestCase):
print_general_ledger.start.accounts = [receivable.id]
print_general_ledger.start.output_format = 'pdf'
print_general_ledger.start.all_accounts = False
print_general_ledger.start.final_accounts = False
_, data = print_general_ledger.do_print_(None)
records, parameters = GeneralLedgerReport.prepare(data)
self.assertEqual(parameters['parties'], customer1.rec_name)