diff --git a/plugin/archivar/tests/test_v8_4.py b/plugin/archivar/tests/test_v8_4.py index ec4c8cf..d8c76cc 100644 --- a/plugin/archivar/tests/test_v8_4.py +++ b/plugin/archivar/tests/test_v8_4.py @@ -147,7 +147,14 @@ def _make_router(room_map: RoomMap, mock_llm_fn=None) -> BidirectionalRouter: """Build a BidirectionalRouter with mock classifier and state.""" mock_client = MockEmbeddingClient() classifier = IntentClassifier(embedding_client=mock_client) - state = ArchivarState() + # Use a temp state file to isolate tests from persisted state + state = ArchivarState(state_file_path="/tmp/archivar_test_state.json") + # Ensure clean state by removing any leftover file + import os as _os + try: + _os.remove("/tmp/archivar_test_state.json") + except FileNotFoundError: + pass router = BidirectionalRouter(room_map, classifier, state) @@ -243,7 +250,7 @@ class TestRedFlagTrigger: # "dokumentation" is a 100% keyword for #LAN-Doku decision = asyncio.run(router.route( - "Bitte dokumentiere das neue Feature", + "Bitte erstelle eine Dokumentation für das neue Feature", origin_room_id="room_rc_plugin", ))