Coverage for src/kwai/modules/club/repositories/coach_repository.py: 100%

3 statements  

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

1"""Module for defining an interface for a coach repository.""" 

2 

3from abc import ABC, abstractmethod 

4 

5from kwai.modules.club.domain.coach import CoachEntity 

6 

7 

8class CoachRepository(ABC): 

9 """An interface for a coach repository.""" 

10 

11 @abstractmethod 

12 async def create(self, coach: CoachEntity): 

13 """Save a new coach.""" 

14 raise NotImplementedError 

15 

16 @abstractmethod 

17 async def delete(self, coach: CoachEntity): 

18 """Delete an existing coach.""" 

19 raise NotImplementedError