Python: DevUI, Fix message serialization issue, improve tests (#2674)

* fix message serialization issue, improve tests for devui

* update tests
This commit is contained in:
Victor Dibia
2025-12-05 18:20:54 -08:00
committed by GitHub
Unverified
parent 2d3ba95036
commit 8c6b12e664
10 changed files with 1431 additions and 373 deletions
+6 -5
View File
@@ -44,7 +44,6 @@ async def test_server_health_endpoint(test_entities_dir):
# Framework name is now hardcoded since we simplified to single framework
@pytest.mark.skip("Skipping while we fix discovery")
async def test_server_entities_endpoint(test_entities_dir):
"""Test /v1/entities endpoint."""
server = DevServer(entities_dir=test_entities_dir)
@@ -52,11 +51,13 @@ async def test_server_entities_endpoint(test_entities_dir):
entities = await executor.discover_entities()
assert len(entities) >= 1
# Should find at least the weather agent
# Should find at least one agent
agent_entities = [e for e in entities if e.type == "agent"]
assert len(agent_entities) >= 1
agent_names = [e.name for e in agent_entities]
assert "WeatherAgent" in agent_names
assert len(agent_entities) >= 1, "Should discover at least one agent"
# Verify agents have required properties
for agent in agent_entities:
assert agent.id, "Agent should have an ID"
assert agent.name, "Agent should have a name"
async def test_server_execution_sync(test_entities_dir):