Coverage for fss\common\enum\enum.py: 100%
11 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-12 22:20 +0800
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-12 22:20 +0800
1"""The enumerations used in the project"""
3from enum import Enum
6class ModeEnum(str, Enum):
7 """
8 Enum for specifying the mode of operation.
9 """
11 development = "dev"
12 production = "prod"
13 testing = "test"
16class SortEnum(str, Enum):
17 """
18 Enum for specifying sorting order.
19 """
21 ascending = "asc"
22 descending = "desc"
25class TokenTypeEnum(str, Enum):
26 """
27 Enum for token type.
28 """
30 access = "access"
31 refresh = "refresh"