Design-system delivery, the contrast fix, recall scoping, and backup coverage #93

Merged
bvandeusen merged 10 commits from dev into main 2026-07-31 23:21:25 -04:00
Showing only changes of commit 2cc9e1380e - Show all commits
+7 -5
View File
@@ -95,16 +95,18 @@ class _CM:
@pytest.mark.asyncio
async def test_export_full_backup_contains_v3_sections():
async def test_export_full_backup_contains_every_declared_section():
with patch("scribe.services.backup.async_session", lambda: _CM()):
out = await backup.export_full_backup()
assert out["version"] == 4
assert out["version"] == backup.BACKUP_VERSION
assert out["scope"] == "full"
assert "api_keys" in out["_not_included"]
# The sections v2 silently dropped must now be present (empty here).
# The sections v2 silently dropped, plus the six v5 added (empty here).
for key in ("rulebooks", "rulebook_topics", "rules",
"rulebook_subscriptions", "rule_suppressions",
"topic_suppressions"):
assert key in out, f"missing v3 section: {key}"
"topic_suppressions",
"systems", "record_systems", "design_systems",
"design_tokens", "note_usage_events", "repo_bindings"):
assert key in out, f"missing export section: {key}"
assert out[key] == []