Skip to content

Commit 7f99fb1

Browse files
committed
[ADD] product_harmonized_system_delivery: Added test cases.
1 parent be2fb76 commit 7f99fb1

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import test_product_template_fields
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from odoo.addons.product_harmonized_system.tests.test_product_harmonized_system import (
2+
TestProductHarmonizedSystem,
3+
)
4+
5+
6+
class TestProductTemplateFields(TestProductHarmonizedSystem):
7+
@classmethod
8+
def setUpClass(cls):
9+
super().setUpClass()
10+
11+
def test_product_template_field_values(self):
12+
"""Verifies that custom fields overwrite Odoo fields"""
13+
self.assertEqual(
14+
self.product_tmpl.hs_code, self.HS1.hs_code, "HS code mismatch"
15+
)
16+
self.assertEqual(
17+
self.product_tmpl.country_of_origin,
18+
self.country,
19+
"Country of origin mismatch",
20+
)

0 commit comments

Comments
 (0)