Browse Source

[FIX] account_bank_statement_import_online: tests

12.0
Alexey Pelykh 5 years ago
parent
commit
779bde9f39
  1. 12
      account_bank_statement_import_online/tests/test_account_bank_statement_import_online.py

12
account_bank_statement_import_online/tests/test_account_bank_statement_import_online.py

@ -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',

Loading…
Cancel
Save