Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
test(websocket): isolate persisted runtime data
Xubin Ren410e5e5121f9
diff --git a/nanobot/channels/websocket/tests/conftest.py b/nanobot/channels/websocket/tests/conftest.pynew file mode 100644index 000000000..d5a23abd5--- /dev/null+++ b/nanobot/channels/websocket/tests/conftest.py@@ -0,0 +1,14 @@+"""Shared isolation for WebSocket tests that persist runtime state."""++from pathlib import Path++import pytest++[email protected](autouse=True)+def isolate_websocket_runtime_data(+ tmp_path: Path,+ monkeypatch: pytest.MonkeyPatch,+) -> None:+ """Keep transcripts and other runtime files out of the active user data directory."""+ monkeypatch.setattr("nanobot.config.paths.get_data_dir", lambda: tmp_path)