From c664ef1cf1c673daefd54030b8c16102b4aeaaa6 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Sun, 29 Oct 2023 19:17:27 +0100 Subject: [PATCH] [TEST] begin test --- .../tests/test_joint_buying_transport_request.py | 9 +++++++++ .../wizards/joint_buying_wizard_find_route.py | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/joint_buying_product/tests/test_joint_buying_transport_request.py b/joint_buying_product/tests/test_joint_buying_transport_request.py index 03f0dee4..13c3ffce 100644 --- a/joint_buying_product/tests/test_joint_buying_transport_request.py +++ b/joint_buying_product/tests/test_joint_buying_transport_request.py @@ -30,3 +30,12 @@ def test_10_joint_buying_grouped_order_generate_transport_request(self): # It should not create a transport request for LSE self.assertFalse(LSE_order.request_id) + + def test_20_transport_request_vev_cda(self): + request = self.env.ref("joint_buying_product.request_vev_cda") + wizard = ( + self.env["joint.buying.wizard.find.route"] + .with_context(active_id=request.id) + .create({}) + ) + wizard.button_apply() diff --git a/joint_buying_product/wizards/joint_buying_wizard_find_route.py b/joint_buying_product/wizards/joint_buying_wizard_find_route.py index fafac32d..041c84d3 100644 --- a/joint_buying_product/wizards/joint_buying_wizard_find_route.py +++ b/joint_buying_product/wizards/joint_buying_wizard_find_route.py @@ -197,4 +197,3 @@ def _create_following_node(self, tree, parent, line, destination): def button_apply(self): self.ensure_one() - raise NotImplementedError()