Files
ctms/backend/tests
Cheng Zhou dd2973c429 test(register): 校验注册请求不再接收角色字段
- test_registration 改用全模型 metadata 创建表并注入自定义 GUID 类型,
  以便 StudyMember 等关联表在 SQLite 测试库中正常工作。
- 注册请求负载移除 role 字段,新增断言验证用户默认角色为 PV 且不再
  生成 study_members 关联;新增 schema 级用例确认 role 不在
  UserRegisterRequest 模型字段中。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 12:37:26 +08:00
..