Files
a0_software_orchestrator/helpers/tests/conftest.py
T
Software Orchestrator 5769c1cd22 Initial commit: a0_software_orchestrator v1.0
- Auto-Registration-Bug behoben (register_project/get_project_id/resolve_project Trennung)
- 25 Tests gruen (Pytest)
- block_compactor-Tool refactored (Option B: Soft-Check statt Hard-Block)
- 4 Restbaustellen gefixt
- DB-Schema: plugin_settings-Tabelle hinzugefuegt
- 3 Schattenprojekte aus DB geloescht
- Plan v3 + Refactor-Plan + Worklog dokumentiert
2026-06-16 22:13:06 +00:00

25 lines
755 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""conftest.py für helpers/tests/ mockt helpers.tool, um plan_mode_guard-Tests
zu ermöglichen, ohne das Agent-Framework (helpers.tool → helpers.history → langchain.prompts)
laden zu müssen.
Wir mocken nur das minimale Tool/Response-Interface, das plan_mode_guard braucht.
"""
import sys
from types import SimpleNamespace
from unittest.mock import MagicMock
# Minimal-Stubs für helpers.tool: Tool als leere Klasse, Response als SimpleNamespace
class _FakeResponse:
def __init__(self, message="", break_loop=False):
self.message = message
self.break_loop = break_loop
class _FakeTool:
pass
_fake_tool_module = SimpleNamespace(Tool=_FakeTool, Response=_FakeResponse)
sys.modules["helpers.tool"] = _fake_tool_module