Coverage for e2xgrader/extensions/base.py: 73%

15 statements  

« prev     ^ index     » next       coverage.py v7.4.2, created at 2024-03-14 13:22 +0100

1from abc import abstractmethod 

2 

3from traitlets.config import LoggingConfigurable 

4 

5 

6class BaseExtensionManager(LoggingConfigurable): 

7 @abstractmethod 

8 def deactivate(self, sys_prefix: bool = True, user: bool = False) -> None: 

9 pass 

10 

11 @abstractmethod 

12 def activate_teacher(self, sys_prefix: bool = True, user: bool = False) -> None: 

13 pass 

14 

15 @abstractmethod 

16 def activate_student(self, sys_prefix: bool = True, user: bool = False) -> None: 

17 pass 

18 

19 @abstractmethod 

20 def activate_student_exam(self, sys_prefix=True, user=False): 

21 pass