You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
791 B
28 lines
791 B
# Copyright 2020 Coop IT Easy SCRL fs
|
|
# Robin Keunen <robin@coopiteasy.be>
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
|
|
|
|
import odoo
|
|
|
|
from odoo.http import controllers_per_module
|
|
from odoo.addons.base_rest.tests.common import BaseRestCase
|
|
|
|
from ..controllers.ping_controller import PingController
|
|
|
|
HOST = "127.0.0.1"
|
|
PORT = odoo.tools.config["http_port"]
|
|
|
|
|
|
class TestControllerRegistry(BaseRestCase):
|
|
def test_controller_registry(self):
|
|
controllers = controllers_per_module["easy_my_coop_api"]
|
|
self.assertEqual(len(controllers), 1)
|
|
|
|
self.assertIn(
|
|
(
|
|
"odoo.addons.easy_my_coop_api.controllers.ping_controller.PingController",
|
|
PingController,
|
|
),
|
|
controllers,
|
|
)
|