7 lines
191 B
Python
7 lines
191 B
Python
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"
|
|
|