@@ -32,9 +32,6 @@ def test_wisdom_operations():
3232 parser = AST_Semantic_Parser_V2 (engine .vocabulary .all_keywords )
3333
3434 for code , func_name in code_samples :
35- tree = ast .parse (code )
36- func_node = tree .body [0 ]
37-
3835 # Get intent from name
3936 intent_concepts = parser .get_intent_concepts (func_name , None )
4037
@@ -43,7 +40,7 @@ def test_wisdom_operations():
4340
4441 # Verify WISDOM is in intent
4542 assert "wisdom" in intent_concepts , f"WISDOM should be in intent for { func_name } "
46- print (f " ✓ WISDOM detected in intent" )
43+ print (" ✓ WISDOM detected in intent" )
4744
4845 print ("\n ✓ All WISDOM operations validated" )
4946
@@ -77,9 +74,6 @@ def test_justice_operations():
7774 parser = AST_Semantic_Parser_V2 (engine .vocabulary .all_keywords )
7875
7976 for code , func_name in code_samples :
80- tree = ast .parse (code )
81- func_node = tree .body [0 ]
82-
8377 # Get intent from name
8478 intent_concepts = parser .get_intent_concepts (func_name , None )
8579
@@ -88,7 +82,7 @@ def test_justice_operations():
8882
8983 # Verify JUSTICE is in intent
9084 assert "justice" in intent_concepts , f"JUSTICE should be in intent for { func_name } "
91- print (f " ✓ JUSTICE detected in intent" )
85+ print (" ✓ JUSTICE detected in intent" )
9286
9387 print ("\n ✓ All JUSTICE operations validated" )
9488
@@ -121,9 +115,6 @@ def test_power_operations():
121115 parser = AST_Semantic_Parser_V2 (engine .vocabulary .all_keywords )
122116
123117 for code , func_name in code_samples :
124- tree = ast .parse (code )
125- func_node = tree .body [0 ]
126-
127118 # Get intent from name
128119 intent_concepts = parser .get_intent_concepts (func_name , None )
129120
@@ -132,7 +123,7 @@ def test_power_operations():
132123
133124 # Verify POWER is in intent
134125 assert "power" in intent_concepts , f"POWER should be in intent for { func_name } "
135- print (f " ✓ POWER detected in intent" )
126+ print (" ✓ POWER detected in intent" )
136127
137128 print ("\n ✓ All POWER operations validated" )
138129
@@ -164,9 +155,6 @@ def test_love_operations():
164155 parser = AST_Semantic_Parser_V2 (engine .vocabulary .all_keywords )
165156
166157 for code , func_name in code_samples :
167- tree = ast .parse (code )
168- func_node = tree .body [0 ]
169-
170158 # Get intent from name
171159 intent_concepts = parser .get_intent_concepts (func_name , None )
172160
@@ -175,7 +163,7 @@ def test_love_operations():
175163
176164 # Verify LOVE is in intent
177165 assert "love" in intent_concepts , f"LOVE should be in intent for { func_name } "
178- print (f " ✓ LOVE detected in intent" )
166+ print (" ✓ LOVE detected in intent" )
179167
180168 print ("\n ✓ All LOVE operations validated" )
181169
@@ -229,7 +217,7 @@ def validate_and_save_user(user_data):
229217 assert "power" in exec_concepts , "POWER should be in execution (assignments)"
230218 assert "wisdom" in exec_concepts , "WISDOM should be in execution (return)"
231219
232- print (f " ✓ Mixed operations correctly detected" )
220+ print (" ✓ Mixed operations correctly detected" )
233221 print (f" ✓ Intent: { len (intent_concepts )} dimensions" )
234222 print (f" ✓ Execution: { len (exec_concepts )} dimensions" )
235223
@@ -326,8 +314,6 @@ def test_backward_compatibility():
326314
327315 from harmonizer .ast_semantic_parser import AST_Semantic_Parser
328316
329- code = "def calculate_total(items):\n return sum(items)"
330-
331317 engine = DivineInvitationSemanticEngine ()
332318
333319 # Test with V1 parser
0 commit comments