From 4891c4de7c19800616a8ecb24a79705a190bb387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brais=20Abeij=C3=B3n?= Date: Fri, 6 Nov 2020 15:08:46 +0100 Subject: [PATCH] [WIP] pms: Add Test Case for advanced pricelist --- pms/tests/__init__.py | 1 + pms/tests/test_pms_pricelist.py | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 pms/tests/test_pms_pricelist.py 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")