Coverage for src/tests/core/events/identity/test_user_invitation_tasks.py: 100%
5 statements
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
1"""Module for testing the user invitation tasks."""
3from kwai_bc_identity.user_invitations.user_invitation_events import (
4 UserInvitationCreatedEvent,
5)
6from kwai_core.domain.value_objects.unique_id import UniqueId
7from kwai_core.events.publisher import Publisher
10async def test_user_invitation_created(publisher: Publisher):
11 """Test user invitation created event."""
12 await publisher.publish(UserInvitationCreatedEvent(uuid=str(UniqueId.generate())))