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.
 
 
 
 

24 lines
731 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).
from odoo.http import controllers_per_module
from odoo.addons.base_rest.tests.common import BaseRestCase
from ..controllers.controllers import UserController
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.controllers.UserController",
UserController,
),
controllers,
)