初始化提交
This commit is contained in:
commit
887c1f449e
963 files changed
+166869
No files matched your search
@@ -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_")
|
||||
Reference in new issue
Block a user