line: reiter für monate, kategorie + test
This commit is contained in:
parent
d6a8b254a3
commit
a23407f515
9 changed files with 333 additions and 3 deletions
|
@ -42,6 +42,7 @@ class BookTestCase(ModuleTestCase):
|
|||
Types = pool.get('cashbook.type')
|
||||
|
||||
types, = Types.search([('short', '=', 'CAS')])
|
||||
category = self.prep_category()
|
||||
|
||||
book, = Book.create([{
|
||||
'name': 'Book 1',
|
||||
|
@ -49,6 +50,7 @@ class BookTestCase(ModuleTestCase):
|
|||
'lines': [('create', [{
|
||||
'date': date(2022, 5, 1),
|
||||
'description': 'test 1',
|
||||
'category': category.id,
|
||||
}])],
|
||||
}])
|
||||
self.assertEqual(book.name, 'Book 1')
|
||||
|
@ -68,6 +70,7 @@ class BookTestCase(ModuleTestCase):
|
|||
Types = pool.get('cashbook.type')
|
||||
|
||||
types, = Types.search([('short', '=', 'CAS')])
|
||||
category = self.prep_category()
|
||||
|
||||
book, = Book.create([{
|
||||
'name': 'Book 1',
|
||||
|
@ -75,6 +78,7 @@ class BookTestCase(ModuleTestCase):
|
|||
'lines': [('create', [{
|
||||
'date': date(2022, 5, 1),
|
||||
'description': 'test 1',
|
||||
'category': category.id,
|
||||
}])],
|
||||
}])
|
||||
self.assertEqual(book.name, 'Book 1')
|
||||
|
@ -96,6 +100,7 @@ class BookTestCase(ModuleTestCase):
|
|||
Types = pool.get('cashbook.type')
|
||||
|
||||
types, = Types.search([('short', '=', 'CAS')])
|
||||
category = self.prep_category()
|
||||
|
||||
book, = Book.create([{
|
||||
'name': 'Book 1',
|
||||
|
@ -103,6 +108,7 @@ class BookTestCase(ModuleTestCase):
|
|||
'lines': [('create', [{
|
||||
'date': date(2022, 5, 1),
|
||||
'description': 'test 1',
|
||||
'category': category.id,
|
||||
}])],
|
||||
}])
|
||||
self.assertEqual(book.name, 'Book 1')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue