初始化提交

This commit is contained in:
chenxin committed 2026-08-21 16:00:13 +08:00
commit 887c1f449e
963 files changed
+166869

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
"""ID 生成测试。"""
from app.core.ids import (
new_character_id,
new_event_id,
new_personality_proposal_id,
new_run_id,
new_user_id,
)
def test_id_prefixes() -> None:
assert new_character_id().startswith("character_")
assert new_run_id().startswith("run_")
assert new_event_id().startswith("event_")
assert new_personality_proposal_id().startswith("personality_proposal_")
assert new_user_id().startswith("user_")