diff --git a/pms/tests/__init__.py b/pms/tests/__init__.py index 09291fa9f..cfbd2f1f4 100644 --- a/pms/tests/__init__.py +++ b/pms/tests/__init__.py @@ -20,3 +20,4 @@ # ############################################################################## from . import test_pms_reservation +from . import test_pms_pricelist diff --git a/pms/tests/test_pms_pricelist.py b/pms/tests/test_pms_pricelist.py new file mode 100644 index 000000000..f1ed184d8 --- /dev/null +++ b/pms/tests/test_pms_pricelist.py @@ -0,0 +1,16 @@ +from odoo.tests import common, tagged + + +@tagged("standard", "nice") +class TestPmsPricelist(common.TransactionCase): + def test_advanced_pricelist_exists(self): + + # ARRANGE + key = "product.product_pricelist_setting" + value = "Advance" + + # ACT + found_value = self.env["ir.config_parameter"].sudo().get_param(key) + + # ASSERT + self.assertEqual(found_value, value, "The register wasn't created")