Coverage for fss\common\enum\enum.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-04-11 19:09 +0800

1"""The enumerations used in the project""" 

2 

3from enum import Enum 

4 

5 

6class ModeEnum(str, Enum): 

7 """ 

8 Enum for specifying the mode of operation. 

9 """ 

10 

11 development = "dev" 

12 production = "prod" 

13 testing = "test" 

14 

15 

16class SortEnum(str, Enum): 

17 """ 

18 Enum for specifying sorting order. 

19 """ 

20 

21 ascending = "asc" 

22 descending = "desc" 

23 

24 

25class TokenTypeEnum(str, Enum): 

26 """ 

27 Enum for token type. 

28 """ 

29 

30 access = "access" 

31 refresh = "refresh"