From 0c099b11b301a5d3b61625c3b563d38809502ec2 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Mon, 12 Sep 2022 00:16:06 +0200 Subject: [PATCH] line: test korrigiert --- tests/test_line.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_line.py b/tests/test_line.py index cc30e49..6975fec 100644 --- a/tests/test_line.py +++ b/tests/test_line.py @@ -915,14 +915,14 @@ class LineTestCase(ModuleTestCase): 'category': category_in.id, 'bookingtype': 'in', 'amount': Decimal('-1.0'), - 'booktransf': book2.id, + 'party': party.id, }, { 'date': date(2022, 6, 1), # out-category, return 'description': 'out-return', # amount negative 'category': category_out.id, 'bookingtype': 'out', 'amount': Decimal('-1.0'), - 'booktransf': book2.id, + 'party': party.id, }])], }]) self.assertEqual(book.name, 'Book 1') @@ -936,7 +936,7 @@ class LineTestCase(ModuleTestCase): # check payee self.assertEqual(book.lines[0].payee.rec_name, 'Party') - self.assertEqual(Line.search_count([('payee', 'ilike', 'party%')]), 2) + self.assertEqual(Line.search_count([('payee', 'ilike', 'party%')]), 4) self.assertEqual(Line.search_count([('payee', 'ilike', 'book%')]), 2) self.assertEqual(book.lines[1].amount, Decimal('1.0'))