Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

test: align three suites with the merged appshot and society designs

rubenluetke10-beep38fe5cc611d5
diff --git a/tests/contract/test_agent_mcp_harmony.py b/tests/contract/test_agent_mcp_harmony.py
index 82a9197628..d7243aa47d 100644
--- a/tests/contract/test_agent_mcp_harmony.py
+++ b/tests/contract/test_agent_mcp_harmony.py
@@ -161,6 +161,10 @@ WITHHELD: Final[dict[str, str]] = {
"pausing, deleting or running a routine now changes recurring spend; "
"the owner does it on the routine card, not via a remote client"
),
+ "GET /api/society/agents/{agent_id}/conversations": (
+ "lists the agent's chats with Jarvis and teammates for the owner's "
+ "history rail in the app; a remote client messages agents directly"
+ ),
"GET /api/society/chat-groups": (
"group chats are the owner's own chat layout in the app; a remote "
"client addresses agents directly"
diff --git a/tests/integration/test_delegation_followthrough.py b/tests/integration/test_delegation_followthrough.py
index be615f88cf..d3cbe37b5e 100644
--- a/tests/integration/test_delegation_followthrough.py
+++ b/tests/integration/test_delegation_followthrough.py
@@ -40,10 +40,10 @@ async def test_two_delegations_return_after_completion_without_blocking_conversa
assert not live.calls # Dispatch is acknowledged before either agent has finished.
pipeline._turn_state = TurnTakingState.USER_SPEAKING
for name in ("scout", "archivist"):
- await chat.queues[f"society:{name}"].put({
+ await chat.queues[f"society:{name}:with:jarvis"].put({
"kind": "assistant_text", "payload": {"text": f"Recorded {name} findings."},
})
- await chat.queues[f"society:{name}"].put({
+ await chat.queues[f"society:{name}:with:jarvis"].put({
"kind": "turn_finished", "payload": {"status": "completed"},
})
await asyncio.wait_for(asyncio.gather(*list(runtime._watchers)), timeout=3)
@@ -71,7 +71,7 @@ async def test_agent_question_is_returned_and_turn_end_does_not_claim_success(wo
text="Which repository do you mean?", trace_id=request.trace_id,
parent_event_id=request.event_id,
)
- await chat.queues["society:scout"].put({
+ await chat.queues["society:scout:with:jarvis"].put({
"kind": "turn_finished", "payload": {"status": "completed"},
})
await asyncio.wait_for(asyncio.gather(*list(runtime._watchers)), timeout=3)
diff --git a/tests/unit/appshot/test_both_option_status.py b/tests/unit/appshot/test_both_option_status.py
index dd3ae54700..fcdc9aa98a 100644
--- a/tests/unit/appshot/test_both_option_status.py
+++ b/tests/unit/appshot/test_both_option_status.py
@@ -17,7 +17,7 @@ from tests.fakes.fake_tcc import install_port, make_darwin_port
class _Watcher:
- def __init__(self, _on_fire, *, probe) -> None: # noqa: ANN001
+ def __init__(self, _on_fire, *, probe, together_s=None) -> None: # noqa: ANN001
self.started = False
def start(self) -> None:
@@ -29,10 +29,12 @@ class _Watcher:
async def _arm(monkeypatch: pytest.MonkeyPatch, host: str):
monkeypatch.setattr(platform_mod, "detect_platform", lambda: host)
- monkeypatch.setattr(gesture_mod, "make_probe", lambda: (lambda: (False, False), ""))
- monkeypatch.setattr(gesture_mod, "BothAltWatcher", _Watcher)
+ monkeypatch.setattr(
+ gesture_mod, "make_probe", lambda _family="alt": (lambda: (False, False), "")
+ )
+ monkeypatch.setattr(gesture_mod, "BothKeysWatcher", _Watcher)
shortcut = AppshotShortcut(bus=object())
- return await shortcut._arm_both_alt()
+ return await shortcut._arm_gesture("window", BOTH_ALT)
async def test_a_mac_gets_the_hint_and_no_permission_is_requested(