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:
@@ -9,7 +9,7 @@ import pytest
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_get_user_tz_returns_configured_zone():
|
||||
from fabledassistant.services import tz as tz_mod
|
||||
from scribe.services import tz as tz_mod
|
||||
|
||||
with patch.object(tz_mod, "get_setting", AsyncMock(return_value="America/New_York")):
|
||||
zone = await tz_mod.get_user_tz(1)
|
||||
@@ -18,7 +18,7 @@ async def test_get_user_tz_returns_configured_zone():
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_get_user_tz_falls_back_to_utc_on_bad_input():
|
||||
from fabledassistant.services import tz as tz_mod
|
||||
from scribe.services import tz as tz_mod
|
||||
|
||||
with patch.object(tz_mod, "get_setting", AsyncMock(return_value="Not/AZone")):
|
||||
zone = await tz_mod.get_user_tz(1)
|
||||
@@ -28,7 +28,7 @@ async def test_get_user_tz_falls_back_to_utc_on_bad_input():
|
||||
@pytest.mark.asyncio
|
||||
async def test_user_day_date_before_4am_returns_yesterday():
|
||||
"""00:00–03:59 local still shows yesterday's day_date."""
|
||||
from fabledassistant.services import tz as tz_mod
|
||||
from scribe.services import tz as tz_mod
|
||||
|
||||
ny = ZoneInfo("America/New_York")
|
||||
# 02:00 NY on 2026-04-13 → day_date = 2026-04-12 (still pre-rollover)
|
||||
@@ -47,7 +47,7 @@ async def test_user_day_date_before_4am_returns_yesterday():
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_user_day_date_after_4am_returns_today():
|
||||
from fabledassistant.services import tz as tz_mod
|
||||
from scribe.services import tz as tz_mod
|
||||
|
||||
ny = ZoneInfo("America/New_York")
|
||||
fake_now = datetime(2026, 4, 13, 4, 30, tzinfo=ny)
|
||||
|
||||
Reference in New Issue
Block a user