The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: connector RPC tests no longer mint a real guest on the live Portal
Teknium3440aa521228
diff --git a/tests/tui_gateway/test_connector_accounts_rpc.py b/tests/tui_gateway/test_connector_accounts_rpc.pyindex 259b60e79e7..4754984aad8 100644--- a/tests/tui_gateway/test_connector_accounts_rpc.py+++ b/tests/tui_gateway/test_connector_accounts_rpc.py@@ -17,6 +17,10 @@ from tui_gateway import serverdef _gate(monkeypatch):live.reset_for_tests()monkeypatch.setattr("tools.connectors.connectors_available", lambda: True)+ # Connect and rename create the guest identity first; in an empty test home that is a real+ # mint on the live Portal (up to 5s), so a slow or refusing Portal failed these tests.+ monkeypatch.setattr("tools.connectors.ensure_guest_identity", lambda: None)+ monkeypatch.setattr("tools.connectors.managed.ensure_guest_identity", lambda: None)yieldlive.reset_for_tests()diff --git a/tests/tui_gateway/test_connector_operation_rpc.py b/tests/tui_gateway/test_connector_operation_rpc.pyindex 6f6b3b3a09d..62dee3385cb 100644--- a/tests/tui_gateway/test_connector_operation_rpc.py+++ b/tests/tui_gateway/test_connector_operation_rpc.py@@ -60,6 +60,10 @@ SID = "op-rpc-session"@pytest.fixturedef owned(monkeypatch):live.reset_for_tests()+ # A connect from the panel creates the guest identity first; in an empty test home that is a+ # real mint on the live Portal (up to 5s), which outlived the 2s reply wait on a slow Portal.+ monkeypatch.setattr("tools.connectors.ensure_guest_identity", lambda: None)+ monkeypatch.setattr("tools.connectors.managed.ensure_guest_identity", lambda: None)with ExitStack() as stack:owner, stranger = PipeClient(stack), PipeClient(stack)session = dict(transport=owner.transport, agent=None, session_key=SID, history=[],