Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] l10n_es_aeat_mod369: use of UserError on tests #73

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions l10n_es_aeat_mod369/tests/test_l10n_es_aeat_mod369.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0
import logging

from odoo.exceptions import ValidationError
from odoo.exceptions import UserError

from odoo.addons.l10n_es_aeat.tests.test_l10n_es_aeat_mod_base import (
TestL10nEsAeatModBase,
Expand Down Expand Up @@ -206,7 +206,7 @@ def test_model_369_account_move_negative_amount(self):
self.model369.button_calculate()
self.model369.total_amount *= -1
if self.model369.total_amount == 0:
with self.assertRaises(ValidationError):
with self.assertRaises(UserError):
self.create_account_move()
else:
self.create_account_move()
Expand Down
Loading