Release: Issues+Systems, milestone-as-plan, plugin reliability/skills/dedup, compaction hygiene #71
@@ -20,11 +20,12 @@ def _fake_note(task_kind="work"):
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_create_task_passes_kind():
|
||||
mock = AsyncMock(return_value=_fake_note(task_kind="plan"))
|
||||
# kind=plan is retired (plans are milestones); 'issue' exercises passthrough.
|
||||
mock = AsyncMock(return_value=_fake_note(task_kind="issue"))
|
||||
with patch("scribe.mcp.tools.tasks.notes_svc.create_note", mock):
|
||||
from scribe.mcp.tools.tasks import create_task
|
||||
await create_task(title="P", kind="plan")
|
||||
assert mock.call_args.kwargs["task_kind"] == "plan"
|
||||
await create_task(title="P", kind="issue")
|
||||
assert mock.call_args.kwargs["task_kind"] == "issue"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Reference in New Issue
Block a user