b255a0f90e
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>
27 lines
884 B
Python
27 lines
884 B
Python
def test_event_model_has_new_columns():
|
|
from scribe.models.event import Event
|
|
cols = {c.key for c in Event.__table__.columns}
|
|
assert "caldav_uid" in cols
|
|
assert "color" in cols
|
|
|
|
|
|
def test_event_to_dict_includes_new_fields():
|
|
from scribe.models.event import Event
|
|
from datetime import datetime, timezone
|
|
e = Event(
|
|
user_id=1, uid="test-uid", title="Test",
|
|
start_dt=datetime(2026, 3, 25, 10, 0, tzinfo=timezone.utc),
|
|
caldav_uid="sync-uid", color="#6366f1",
|
|
)
|
|
d = e.to_dict()
|
|
assert d["caldav_uid"] == "sync-uid"
|
|
assert d["color"] == "#6366f1"
|
|
|
|
|
|
def test_caldav_create_event_accepts_uid_param():
|
|
"""caldav.create_event signature must accept an optional uid param."""
|
|
import inspect
|
|
from scribe.services.caldav import create_event
|
|
sig = inspect.signature(create_event)
|
|
assert "uid" in sig.parameters
|