You've already forked RekomenciBackend
13 lines
300 B
Python
13 lines
300 B
Python
from datetime import UTC
|
|
from uuid import UUID
|
|
|
|
from template_project.application.user.entity import User
|
|
|
|
|
|
def test_user_factory_creates_valid_user() -> None:
|
|
user = User.factory()
|
|
|
|
assert isinstance(user.id, UUID)
|
|
assert user.deleted_at is None
|
|
assert user.created_at.tzinfo == UTC
|