From 071ca98130ae8e2f0726212d66ab603ccd59306b Mon Sep 17 00:00:00 2001 From: Maksym Yankin Date: Thu, 9 Jul 2026 17:57:57 +0300 Subject: [PATCH] [FIX] endpoint: use self.patch for _endpoint_route_prefix in test_routing --- endpoint/tests/test_endpoint.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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):