Bahn: aisupport, Analyse-O2C-C2S, awesome-bahn-mcp-servers, beam-mcp,
Confluence_Bot, db-planet-mcp-server, O2C-Harness, project-audit,
Projekt-KIQ-HP, teamlandkarte-mcp
Dhive: Jury-Voting
Privat: CV, NoteGraph (NOTE: NoteGraph needs complete redo after consolidation)
Shared: AI-Orchestrator, OrgMyLife, power_skills_and_more
Shared/references: symphony (read-only)
Bahn repos remain available as independent remotes - this monorepo
pulls them in via subtree, the originals are untouched.
39 lines
948 B
Python
39 lines
948 B
Python
from __future__ import annotations
|
|
|
|
import asyncio
|
|
import pytest
|
|
|
|
from teamlandkarte_mcp.matching.task_helpers import (
|
|
TaskHelpersDeprecatedError,
|
|
extract_requirements_from_task,
|
|
)
|
|
|
|
|
|
class MissingDB:
|
|
"""DB stub that simulates an unavailable database."""
|
|
|
|
def get_task_by_id(self, task_id: str):
|
|
raise RuntimeError("db unavailable")
|
|
|
|
def get_task_by_name(self, name: str):
|
|
raise RuntimeError("db unavailable")
|
|
|
|
|
|
class NoopAnalyzer:
|
|
async def extract_requirements(self, description: str): # pragma: no cover
|
|
raise AssertionError("should not be called")
|
|
|
|
|
|
def test_extract_requirements_from_task_is_deprecated() -> None:
|
|
db = MissingDB()
|
|
analyzer = NoopAnalyzer()
|
|
|
|
with pytest.raises(TaskHelpersDeprecatedError):
|
|
asyncio.run(
|
|
extract_requirements_from_task(
|
|
db=db,
|
|
analyzer=analyzer,
|
|
task_id="t",
|
|
)
|
|
)
|