Coverage for src/kwai/modules/identity/user_recoveries/user_recovery_events.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2024-01-01 00:00 +0000

1"""Module that defines all user recovery events.""" 

2 

3from dataclasses import dataclass 

4from typing import ClassVar 

5 

6from kwai.core.events.event import Event, EventMeta 

7 

8 

9@dataclass(kw_only=True, frozen=True) 

10class UserRecoveryCreatedEvent(Event): 

11 """Event that is raised when a user recovery is created.""" 

12 

13 meta: ClassVar[EventMeta] = EventMeta( 

14 module="identity", name="user_recovery.created" 

15 ) 

16 uuid: str