AI-powered virtual executive team — a single coherent executive persona backed by 8 specialist agents (FastAPI + Next.js).
test(integrations): keep the Discord DM tests off the working-directory DB (#356)
Rufuse3739ff59ea2
diff --git a/packages/core/tests/unit/test_lookup_person_and_discord_dm.py b/packages/core/tests/unit/test_lookup_person_and_discord_dm.pyindex fc38ea1b..f9cf1507 100644--- a/packages/core/tests/unit/test_lookup_person_and_discord_dm.py+++ b/packages/core/tests/unit/test_lookup_person_and_discord_dm.py@@ -14,6 +14,7 @@ from unittest.mock import AsyncMock, patchimport pytest+from openexecutive.memory import episodicfrom openexecutive.orchestrator.schedule_tools import (handle_lookup_person,handle_send_discord_dm,@@ -26,6 +27,13 @@ def isolated_people_db(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path:db_path = tmp_path / "episodic.db"monkeypatch.setattr(people_store, "DB_PATH", db_path)people_store.initialize_db()+ # A send also records itself on the activity rail and in the audit log,+ # both through the default ./episodic_memory.db. Run from tmp_path with+ # that schema in place: otherwise the tests write a stray DB into the+ # working directory (breaking later modules on the same worker) and the+ # rail's "persist failed" audit row becomes the last audit call.+ monkeypatch.chdir(tmp_path)+ episodic.initialize_db(tmp_path / "episodic_memory.db")return db_path