@@ -31,7 +31,7 @@ def test_template_validation():
3131
3232 is_valid , error = validate_template_syntax (valid_template )
3333 assert is_valid , f"Valid template failed validation: { error } "
34- print ("✓ Valid template validation passed" )
34+ print ("[OK] Valid template validation passed" )
3535
3636 # Invalid template (more obvious syntax error)
3737 invalid_template = """
@@ -44,12 +44,12 @@ def test_template_validation():
4444
4545 is_valid , error = validate_template_syntax (invalid_template )
4646 # Note: Airspeed is quite lenient, so we'll just check that it doesn't crash
47- print (f"✓ Invalid template validation completed (result: { is_valid } )" )
47+ print (f"[OK] Invalid template validation completed (result: { is_valid } )" )
4848
4949 # Empty template
5050 is_valid , error = validate_template_syntax ("" )
5151 assert not is_valid , "Empty template should have failed validation"
52- print ("✓ Empty template validation passed" )
52+ print ("[OK] Empty template validation passed" )
5353
5454
5555def test_json_validation ():
@@ -61,19 +61,19 @@ def test_json_validation():
6161 is_valid , error , data = validate_json_data (valid_json )
6262 assert is_valid , f"Valid JSON failed validation: { error } "
6363 assert data ["name" ] == "John" , "JSON data not parsed correctly"
64- print ("✓ Valid JSON validation passed" )
64+ print ("[OK] Valid JSON validation passed" )
6565
6666 # Invalid JSON
6767 invalid_json = '{"name": "John", "age": 30,}'
6868 is_valid , error , data = validate_json_data (invalid_json )
6969 assert not is_valid , "Invalid JSON should have failed validation"
70- print ("✓ Invalid JSON validation passed" )
70+ print ("[OK] Invalid JSON validation passed" )
7171
7272 # Empty JSON
7373 is_valid , error , data = validate_json_data ("" )
7474 assert is_valid , "Empty JSON should be valid (empty dict)"
7575 assert data == {}, "Empty JSON should return empty dict"
76- print ("✓ Empty JSON validation passed" )
76+ print ("[OK] Empty JSON validation passed" )
7777
7878
7979def test_template_rendering ():
@@ -95,7 +95,7 @@ def test_template_rendering():
9595 assert success , f"Template rendering failed: { result } "
9696 assert "Hello, World!" in result , "Rendered template missing expected content"
9797 assert "Python" in result , "Rendered template missing skills"
98- print ("✓ Template rendering passed" )
98+ print ("[OK] Template rendering passed" )
9999
100100
101101def test_html_export ():
@@ -109,7 +109,7 @@ def test_html_export():
109109 assert "Hello, World!" in html , "HTML export missing content"
110110 assert "Test Export" in html , "HTML export missing title"
111111 assert "Velocity Template Previewer" in html , "HTML export missing app name"
112- print ("✓ HTML export passed" )
112+ print ("[OK] HTML export passed" )
113113
114114
115115def main ():
@@ -122,11 +122,11 @@ def main():
122122 test_template_rendering ()
123123 test_html_export ()
124124
125- print ("\n 🎉 All tests passed! The VM Visualizer is working correctly." )
125+ print ("\n [SUCCESS] All tests passed! The VM Visualizer is working correctly." )
126126 return True
127127
128128 except Exception as e :
129- print (f"\n ❌ Test failed: { e } " )
129+ print (f"\n [ERROR] Test failed: { e } " )
130130 return False
131131
132132
0 commit comments