@@ -23,8 +23,8 @@ def test_intent_from_function_name(parser):
2323 Tests that concepts are correctly extracted from a function name.
2424 """
2525 name = "get_user_by_id_and_update_status"
26- # 'get' -> wisdom, 'update' -> power
27- expected_concepts = {"wisdom" , "power" , "status" }
26+ # 'get' -> wisdom, 'update' -> power, 'status' -> wisdom
27+ expected_concepts = {"wisdom" , "power" }
2828 concepts = parser .get_intent_concepts (name , None )
2929 assert set (concepts ) == expected_concepts
3030
@@ -102,7 +102,8 @@ def test_execution_error_handling(parser):
102102 log_error("Division by zero")
103103 raise ValueError("Invalid operation")
104104 """
105- expected_concepts = {"justice" , "love" , "power" }
105+ # try -> justice, except -> love, log -> wisdom, raise -> power
106+ expected_concepts = {"justice" , "love" , "power" , "wisdom" }
106107 body = ast .parse (code ).body
107108 _ , concepts = parser .get_execution_map (body )
108109 assert set (concepts ) == expected_concepts
0 commit comments