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()