Skip to content

Commit

Permalink
[IMP] l10n_br_fiscal: add test operation copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago370 authored and rvalyi committed Jan 15, 2025
1 parent e0796c8 commit 9f6549a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_br_fiscal/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
test_service_type,
test_subsequent_operation,
test_uom_uom,
test_operation,
)
13 changes: 13 additions & 0 deletions l10n_br_fiscal/tests/test_operation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2024 KMEE
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo.tests.common import TransactionCase


class TestOperation(TransactionCase):
def test_copy(self):
"""Test Operation copy()"""
operation_venda = self.env.ref("l10n_br_fiscal.fo_venda")
operation_venda_copy = operation_venda.copy()
self.assertEqual(operation_venda_copy.name, "Venda")
self.assertEqual(operation_venda_copy.code, "Venda (Copy)")

0 comments on commit 9f6549a

Please sign in to comment.