forked from andrewbartels1/SolidworksMCP-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_workflow_fields.py
More file actions
27 lines (22 loc) · 896 Bytes
/
Copy pathtest_workflow_fields.py
File metadata and controls
27 lines (22 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python
"""Quick test to verify workflow text fields are in backend response."""
import sys
import json
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent / "src"))
from solidworks_mcp.ui.service import build_dashboard_state
state = build_dashboard_state()
print("=" * 60)
print("Backend response fields:")
print("=" * 60)
print(f"✓ workflow_label: {state.get('workflow_label')!r}")
print(f"✓ flow_header_text: {state.get('flow_header_text')!r}")
print(f"✓ workflow_guidance_text: {state.get('workflow_guidance_text')!r}")
print()
print("Checking for template literal corruption:")
for key in ['workflow_label', 'flow_header_text', 'workflow_guidance_text']:
val = state.get(key, "")
if '{{' in val or '$result' in val:
print(f" ✗ {key} contains template literals!")
else:
print(f" ✓ {key} is clean")