mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] hotel property test cases
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
# from . import test_folio
|
||||
from . import test_inherited_ir_http
|
||||
from . import test_inherited_product_pricelist
|
||||
from . import test_hotel_property
|
||||
from . import test_hotel_room_type
|
||||
from . import test_hotel_room
|
||||
from . import test_massive_changes
|
||||
|
||||
13
hotel/tests/test_hotel_property.py
Normal file
13
hotel/tests/test_hotel_property.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from .common import TestHotel
|
||||
from odoo import fields
|
||||
from odoo.exceptions import ValidationError
|
||||
|
||||
|
||||
class TestHotelProperty(TestHotel):
|
||||
|
||||
# be aware using self.env.user.hotel_id because it is the value configure for the user running the tests
|
||||
|
||||
def test_default_pricelist(self):
|
||||
# A default pricelist must be related with one and only one hotel
|
||||
with self.assertRaises(ValidationError):
|
||||
self.demo_hotel_property.default_pricelist_id = self.list0
|
||||
Reference in New Issue
Block a user