diff --git a/endpoint/tests/test_endpoint.py b/endpoint/tests/test_endpoint.py index c5501d81..4a1b3e82 100644 --- a/endpoint/tests/test_endpoint.py +++ b/endpoint/tests/test_endpoint.py @@ -168,7 +168,7 @@ def test_routing(self): }, ) # check prefix - type(endpoint)._endpoint_route_prefix = "/foo" + self.patch(type(endpoint), "_endpoint_route_prefix", "/foo") endpoint._compute_route() __, info, __ = endpoint._get_routing_info() self.assertEqual( @@ -182,7 +182,6 @@ def test_routing(self): "readonly": False, }, ) - type(endpoint)._endpoint_route_prefix = "" @mute_logger("odoo.modules.registry") def test_unlink(self):