Files
sciagent/be0/tests/auth_register_staff_fixture.py
T
Thinh Lam 688fac73e9
CI/CD / backend (push) Failing after 2m8s
CI/CD / frontend (push) Failing after 1m40s
CI/CD / deploy (push) Has been skipped
sciagent code + Gitea Actions CI/CD
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 09:38:30 +07:00

17 lines
504 B
Python

"""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ộ",
}