refactor: rename package fabledassistant -> scribe (code-only)
Renames src/fabledassistant -> src/scribe and all imports, plus the default DB name and DB user/password (fabled -> scribe) in config + compose. 952 refs / 154 files. Reverses the old 'internal name stays fabledassistant' convention. Code-only: live databases are still physically named 'fabledassistant'. Deployed environments must set POSTGRES_DB / POSTGRES_USER (or rename the DB) since the defaults now resolve to 'scribe'. Repo (FabledScribe), git host (fabledsword), MCP (fabled-git) and the image name (fabledscribe) are intentionally unchanged. ruff check src/ clean locally; CI (typecheck + pytest) is the gate. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -13,15 +13,15 @@ async def test_start_planning_creates_plan_task_and_returns_rules():
|
||||
"truncated": False,
|
||||
"subscribed_rulebooks": [{"id": 2, "title": "FabledSword family"}],
|
||||
}
|
||||
with patch("fabledassistant.services.planning.notes_svc.create_note",
|
||||
with patch("scribe.services.planning.notes_svc.create_note",
|
||||
AsyncMock(return_value=fake_note)) as mock_create, \
|
||||
patch("fabledassistant.services.planning.rulebooks_svc.get_applicable_rules",
|
||||
patch("scribe.services.planning.rulebooks_svc.get_applicable_rules",
|
||||
AsyncMock(return_value=applicable)), \
|
||||
patch("fabledassistant.services.planning.notes_svc.list_notes",
|
||||
patch("scribe.services.planning.notes_svc.list_notes",
|
||||
AsyncMock(return_value=([], 3))), \
|
||||
patch("fabledassistant.services.planning.projects_svc.get_project",
|
||||
patch("scribe.services.planning.projects_svc.get_project",
|
||||
AsyncMock(return_value=MagicMock(goal="ship it"))):
|
||||
from fabledassistant.services.planning import start_planning
|
||||
from scribe.services.planning import start_planning
|
||||
out = await start_planning(user_id=7, project_id=3, title="Plan it")
|
||||
|
||||
# Created a plan-task (status set => task, kind=plan)
|
||||
@@ -39,8 +39,8 @@ async def test_start_planning_creates_plan_task_and_returns_rules():
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_start_planning_raises_when_project_not_found():
|
||||
with patch("fabledassistant.services.planning.projects_svc.get_project",
|
||||
with patch("scribe.services.planning.projects_svc.get_project",
|
||||
AsyncMock(return_value=None)):
|
||||
from fabledassistant.services.planning import start_planning
|
||||
from scribe.services.planning import start_planning
|
||||
with pytest.raises(ValueError, match="project 999 not found"):
|
||||
await start_planning(user_id=7, project_id=999, title="x")
|
||||
|
||||
Reference in New Issue
Block a user