Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

test(codex): restore subprocess patch after transport test

cyh0cce1d2158b3
diff --git a/tests/test_codex_agent.py b/tests/test_codex_agent.py
index 86ce8776a..96d746f62 100644
--- a/tests/test_codex_agent.py
+++ b/tests/test_codex_agent.py
@@ -4,7 +4,7 @@ import types
import unittest
from pathlib import Path
from types import SimpleNamespace
-from unittest.mock import AsyncMock, Mock
+from unittest.mock import AsyncMock, Mock, patch
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
@@ -410,11 +410,14 @@ class CodexTransportCommandTests(unittest.IsolatedAsyncioTestCase):
created_cmd["cmd"] = list(cmd)
return _FakeProcess()
- transport_module.asyncio.create_subprocess_exec = fake_create_subprocess_exec
-
- transport = Transport(binary="codex", cwd="/tmp/work")
- await transport.start()
- await transport.stop()
+ with patch.object(
+ transport_module.asyncio,
+ "create_subprocess_exec",
+ new=fake_create_subprocess_exec,
+ ):
+ transport = Transport(binary="codex", cwd="/tmp/work")
+ await transport.start()
+ await transport.stop()
self.assertEqual(
created_cmd["cmd"],