Skip to content

Commit

Permalink
fixup! [ADD] tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed May 12, 2023
1 parent 5da9385 commit 58854c4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 58854c4

Please sign in to comment.