File size: 691 Bytes
8b02e7c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/usr/bin/env python
"""Quick test to verify UI loads without errors."""

from pathlib import Path
from delegation_mcp.ui.app import create_app

def test_ui_creation():
    """Test that the Gradio app can be created."""
    print("Creating Gradio app...")
    app = create_app()
    print("Gradio app created successfully!")
    print(f"App has {len(app.blocks)} blocks")
    print("All components initialized")
    assert app is not None
    assert len(app.blocks) > 0

if __name__ == "__main__":
    try:
        test_ui_creation()
        exit(0)
    except Exception as e:
        print(f"Error creating app: {e}")
        import traceback
        traceback.print_exc()
        exit(1)