arbret/backend/tests/helpers.py

8 lines
191 B
Python
Raw Normal View History

2025-12-18 22:31:19 +01:00
import uuid
def unique_email(prefix: str = "test") -> str:
"""Generate a unique email for tests sharing the same database."""
return f"{prefix}-{uuid.uuid4().hex[:8]}@example.com"