From 779bde9f395c7e0d5bb9fe7b632c7c567494a952 Mon Sep 17 00:00:00 2001 From: Alexey Pelykh Date: Sat, 6 Jun 2020 08:57:21 +0200 Subject: [PATCH] [FIX] account_bank_statement_import_online: tests --- .../test_account_bank_statement_import_online.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/account_bank_statement_import_online/tests/test_account_bank_statement_import_online.py b/account_bank_statement_import_online/tests/test_account_bank_statement_import_online.py index e868519..9e347ba 100644 --- a/account_bank_statement_import_online/tests/test_account_bank_statement_import_online.py +++ b/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',