Coverage for src/data_api/domain/buses/enums.py: 100%

29 statements  

« prev     ^ index     » next       coverage.py v7.16.2, created at 2026-11-13 19:28 +0000

1""" 

2Bus domain enums. 

3 

4This module contains all enumerations used in the bus domain. 

5Moved from schemas to keep domain independent of Pydantic. 

6""" 

7 

8from enum import Enum 

9 

10 

11class BusStopsName(str, Enum): 

12 """Bus stop names.""" 

13 

14 M1 = "北校門口" 

15 M2 = "綜二館" 

16 M3 = "楓林小徑" 

17 M4 = "人社院&生科館" 

18 M5 = "台積館" 

19 M6 = "奕園停車場" 

20 M7 = "教育學院大樓&南門停車場" 

21 S1 = "南大校區校門口右側(食品路校牆邊)" 

22 

23 

24class BusRouteType(str, Enum): 

25 """Bus route type.""" 

26 

27 all = "all" 

28 main = "main" 

29 nanda = "nanda" 

30 

31 

32class BusType(str, Enum): 

33 """Bus vehicle type.""" 

34 

35 route_83 = "route_83" 

36 large_sized_bus = "large-sized_bus" 

37 middle_sized_bus = "middle-sized_bus" 

38 

39 

40class BusDirection(str, Enum): 

41 """Bus direction.""" 

42 

43 all = "all" 

44 up = "up" 

45 down = "down" 

46 

47 

48class BusDay(str, Enum): 

49 """Day type for bus schedule.""" 

50 

51 weekday = "weekday" 

52 weekend = "weekend" 

53 

54 

55class BusDayWithCurrent(str, Enum): 

56 """Day type including current day option.""" 

57 

58 weekday = "weekday" 

59 weekend = "weekend" 

60 current = "current"