From c6a1f2a2dd77494d2c2dbe402f8db98543ba9b83 Mon Sep 17 00:00:00 2001 From: Pablo Date: Sat, 10 Nov 2018 21:17:48 +0100 Subject: [PATCH] [ADD] Add sketch for tests --- hotel_node_master/tests/__init__.py | 23 +++++++++++ hotel_node_master/tests/common.py | 38 +++++++++++++++++++ .../tests/test_hotel_node_master.py | 30 +++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 hotel_node_master/tests/__init__.py create mode 100644 hotel_node_master/tests/common.py create mode 100644 hotel_node_master/tests/test_hotel_node_master.py diff --git a/hotel_node_master/tests/__init__.py b/hotel_node_master/tests/__init__.py new file mode 100644 index 000000000..71f06506f --- /dev/null +++ b/hotel_node_master/tests/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2017 Solucións Aloxa S.L. +# Alexandre Díaz +# +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## +from . import test_hotel_node_master diff --git a/hotel_node_master/tests/common.py b/hotel_node_master/tests/common.py new file mode 100644 index 000000000..285651553 --- /dev/null +++ b/hotel_node_master/tests/common.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2017 Solucións Aloxa S.L. +# Alexandre Díaz +# +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## +from odoo.tests import common +import logging +_logger = logging.getLogger(__name__) + + +class TestHotel(common.SavepointCase): + + @classmethod + def _init_mock_hotel(cls): + return True + + @classmethod + def setUpClass(cls): + super(TestHotel, cls).setUpClass() + + cls._init_mock_hotel() diff --git a/hotel_node_master/tests/test_hotel_node_master.py b/hotel_node_master/tests/test_hotel_node_master.py new file mode 100644 index 000000000..2b63fd301 --- /dev/null +++ b/hotel_node_master/tests/test_hotel_node_master.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2017 Solucións Aloxa S.L. +# Alexandre Díaz +# +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## +from .common import TestHotel +from odoo.exceptions import ValidationError + + +class TestHotelNodeMaster(TestHotel): + + def test_wizard_hotel_node_reservation(self): + pass