[WIP] pms: Add Test Case for advanced pricelist

This commit is contained in:
Brais Abeijón
2020-11-06 15:08:46 +01:00
parent d738245133
commit 4891c4de7c
2 changed files with 17 additions and 0 deletions

View File

@@ -20,3 +20,4 @@
#
##############################################################################
from . import test_pms_reservation
from . import test_pms_pricelist

View File

@@ -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")