sciagent code + Gitea Actions CI/CD
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""Minimal valid staff fields for POST /api/v1/auth/register in integration tests."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import uuid
|
||||
|
||||
|
||||
def register_staff_fields() -> dict[str, str]:
|
||||
"""Unique employee_id per call (DB partial unique index on user_staff_profiles.employee_id)."""
|
||||
suffix = uuid.uuid4().hex[:8].upper()
|
||||
return {
|
||||
"employeeId": f"CB-{suffix}",
|
||||
"academicTitleCode": "master",
|
||||
"unitNameFreetext": "Khoa kiểm thử",
|
||||
"jobTitle": "Cán bộ",
|
||||
}
|
||||
Reference in New Issue
Block a user