From a12bfe88aeda28e80f2dea331a1386252a7ccfc9 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 23 Sep 2025 07:15:18 -0700 Subject: [PATCH] fix tests --- tests/app/main/views/test_templates.py | 32 ++++++++++++-------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/tests/app/main/views/test_templates.py b/tests/app/main/views/test_templates.py index 488736a95..67f58d8c9 100644 --- a/tests/app/main/views/test_templates.py +++ b/tests/app/main/views/test_templates.py @@ -830,6 +830,7 @@ def test_choose_a_template_to_copy_from_folder_within_service( "sms", "Should appear in list (at same level)", parent=PARENT_FOLDER_ID, + template_id=TEMPLATE_ONE_ID, ), _template( "sms", @@ -878,23 +879,20 @@ def test_choose_a_template_to_copy_from_folder_within_service( service_id=SERVICE_ONE_ID, from_folder=FOLDER_TWO_ID, ) - # assert links[1]["href"] == url_for( - # "main.choose_template_to_copy", - # service_id=SERVICE_ONE_ID, - # from_service=SERVICE_ONE_ID, - # from_folder=PARENT_FOLDER_ID, - # ) - # assert links[2]["href"] == url_for( - # "main.choose_template_to_copy", - # service_id=SERVICE_ONE_ID, - # from_folder=FOLDER_TWO_ID, - # ) - # assert links[3]["href"] == url_for( - # "main.copy_template", - # service_id=SERVICE_ONE_ID, - # template_id=TEMPLATE_ONE_ID, - # from_service=SERVICE_ONE_ID, - # ) + + assert links[1]["href"] == url_for( + "main.copy_template", + service_id=SERVICE_ONE_ID, + template_id=TEMPLATE_ONE_ID, + from_service=SERVICE_ONE_ID, + ) + + assert links[2]["href"] == url_for( + "main.copy_template", + service_id=SERVICE_ONE_ID, + template_id=TEMPLATE_ONE_ID, + from_service=SERVICE_ONE_ID, + ) @pytest.mark.parametrize(