统一项目角色展示与预设文案
This commit is contained in:
@@ -24,3 +24,23 @@ def test_migration_state_check_script_exists():
|
||||
assert "studies" in source
|
||||
assert "subjects" in source
|
||||
assert "monitoring_visit_issues" in source
|
||||
|
||||
|
||||
def test_remove_qa_role_migration_casts_json_permissions_for_key_lookup():
|
||||
source = Path("alembic/versions/20260521_01_remove_qa_role.py").read_text(encoding="utf-8")
|
||||
|
||||
assert "permissions ? 'QA'" not in source
|
||||
assert "permissions::jsonb ? 'QA'" in source
|
||||
|
||||
|
||||
def test_role_template_copy_migration_updates_display_copy_without_qa_role_key():
|
||||
source = Path("alembic/versions/20260522_01_update_role_template_copy.py").read_text(encoding="utf-8")
|
||||
|
||||
assert "项目负责人,统筹项目全局,协调进度、资源与关键决策。" in source
|
||||
assert "负责各中心临床监查执行,跟进现场质量、数据和问题闭环。" in source
|
||||
assert "负责合同、药品及相关项目事务管理,保障执行支持与物资协同。" in source
|
||||
assert "负责医学审核与稽查,关注质量风险、合规性和医学一致性。" in source
|
||||
assert "负责药物警戒相关工作,跟踪安全性事件并支持风险评估。" in source
|
||||
assert '"IMP": ("CTA"' in source
|
||||
assert '"MEDICAL_REVIEW": ("QA"' in source
|
||||
assert "category = 'QA'" not in source
|
||||
|
||||
Reference in New Issue
Block a user