From 58854c448604d0c79fbde21c07cf5901793d9576 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Fri, 12 May 2023 13:02:24 +0200 Subject: [PATCH] fixup! [ADD] tests --- .../tests/test_datev_import_csv_dtvf.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py b/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py index 0f5f9be9..d3477951 100644 --- a/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py +++ b/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py @@ -131,3 +131,14 @@ def test_wizard_broken_file(self): ) with self.assertRaises(exceptions.UserError): wizard.run_import() + + def test_nonexisting_account_journal(self): + wizard = self.env["account.move.import"].create( + { + "file_to_import": b64encode( + b"file,with\nnonexisting\n42,H,,,,,42424242,424242420,,01/01/2023" + ), + } + ) + with self.assertRaises(exceptions.UserError): + wizard.run_import()