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

  1. # Copyright 2020 Coop IT Easy SCRL fs
  2. # Robin Keunen <robin@coopiteasy.be>
  3. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
  4. from odoo.http import controllers_per_module
  5. from odoo.addons.base_rest.tests.common import BaseRestCase
  6. from ..controllers.controllers import UserController
  7. class TestControllerRegistry(BaseRestCase):
  8. def test_controller_registry(self):
  9. controllers = controllers_per_module["easy_my_coop_api"]
  10. self.assertEqual(len(controllers), 1)
  11. self.assertIn(
  12. (
  13. "odoo.addons.easy_my_coop_api"
  14. ".controllers.controllers.UserController",
  15. UserController,
  16. ),
  17. controllers,
  18. )