From 467ec1e64f6cbae1d58a8ace7e9be72ca8cc5bca Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 10 Oct 2026 17:02:16 +0000 Subject: [PATCH] grass.tools: Assert results in levenshtein empty-text test The test computed both levenshtein_distance results but did not assert them, so it passed regardless of the value. Add the missing asserts. The change was found and fixed with AI assistance. --- .../grass/tools/tests/grass_tools_tool_function_wrap_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/grass/tools/tests/grass_tools_tool_function_wrap_test.py b/python/grass/tools/tests/grass_tools_tool_function_wrap_test.py index 714c14f0e2b..bb75dd3cdbc 100644 --- a/python/grass/tools/tests/grass_tools_tool_function_wrap_test.py +++ b/python/grass/tools/tests/grass_tools_tool_function_wrap_test.py @@ -65,10 +65,10 @@ def test_names(echoing_resolver): def test_levenshtein_distance_empty_text(): empty_text = "" non_empty_text = "abc" - ToolFunctionResolver.levenshtein_distance(empty_text, non_empty_text) == len( + assert ToolFunctionResolver.levenshtein_distance(empty_text, non_empty_text) == len( non_empty_text ) - ToolFunctionResolver.levenshtein_distance(non_empty_text, empty_text) == len( + assert ToolFunctionResolver.levenshtein_distance(non_empty_text, empty_text) == len( non_empty_text )