|
|
@ -582,7 +582,7 @@ class TestAccountBankAccountStatementImportOnline(common.TransactionCase): |
|
|
|
self.assertEqual(lines[2].date, date(2020, 4, 18)) |
|
|
|
self.assertEqual(lines[3].date, date(2020, 4, 18)) |
|
|
|
|
|
|
|
def test_timestamp_date_only(self): |
|
|
|
def test_timestamp_date_only_date(self): |
|
|
|
journal = self.AccountJournal.create({ |
|
|
|
'name': 'Bank', |
|
|
|
'type': 'bank', |
|
|
@ -607,13 +607,11 @@ class TestAccountBankAccountStatementImportOnline(common.TransactionCase): |
|
|
|
self.assertEqual(len(statement), 1) |
|
|
|
|
|
|
|
lines = statement.line_ids |
|
|
|
self.assertEqual(len(lines), 4) |
|
|
|
self.assertEqual(lines[0].date, date(2020, 4, 18)) |
|
|
|
self.assertEqual(lines[1].date, date(2020, 4, 18)) |
|
|
|
self.assertEqual(lines[2].date, date(2020, 4, 18)) |
|
|
|
self.assertEqual(lines[3].date, date(2020, 4, 18)) |
|
|
|
self.assertEqual(len(lines), 24) |
|
|
|
for line in lines: |
|
|
|
self.assertEqual(line.date, date(2020, 4, 18)) |
|
|
|
|
|
|
|
def test_timestamp_date_only(self): |
|
|
|
def test_timestamp_date_only_str(self): |
|
|
|
journal = self.AccountJournal.create({ |
|
|
|
'name': 'Bank', |
|
|
|
'type': 'bank', |
|
|
|