Coverage for models/__init__.py: 100.00%

12 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2026-04-15 12:24 +0000

1""" 

2Pydantic models for data validation and serialization. 

3 

4All models are organized by domain for better maintainability. 

5""" 

6 

7# Auth models 

8from .auth import ( 

9 AdminPlayerTeamAssignment, 

10 AdminPlayerTeamEnd, 

11 AdminPlayerUpdate, 

12 ForgotPasswordRequest, 

13 PlayerCustomization, 

14 PlayerHistoryCreate, 

15 PlayerHistoryUpdate, 

16 ProfilePhotoSlot, 

17 RefreshTokenRequest, 

18 ResetPasswordRequest, 

19 RoleUpdate, 

20 UserLogin, 

21 UserProfile, 

22 UserProfileUpdate, 

23 UserSignup, 

24) 

25 

26# Club models 

27from .clubs import Club, ClubData, ClubWithTeams, TeamData, load_clubs_from_json 

28 

29# League/Division models 

30from .leagues import ( 

31 DivisionCreate, 

32 DivisionUpdate, 

33 League, 

34 LeagueCreate, 

35 LeagueUpdate, 

36) 

37 

38# Lineup models 

39from .lineup import ( 

40 LineupPositionEntry, 

41 LineupPositionResponse, 

42 LineupResponse, 

43 LineupSave, 

44) 

45 

46# Live match models 

47from .live_match import ( 

48 GoalEvent, 

49 GoalEventUpdate, 

50 LiveCardEvent, 

51 LiveMatchClock, 

52 LiveMatchState, 

53 LiveMatchSummary, 

54 MatchEventResponse, 

55 MessageEvent, 

56) 

57 

58# Match models 

59from .matches import EnhancedMatch, MatchPatch, MatchSubmissionData 

60 

61# Playoff models 

62from .playoffs import ( 

63 AdvanceWinnerRequest, 

64 ForfeitMatchRequest, 

65 GenerateBracketRequest, 

66 PlayoffBracketSlot, 

67) 

68 

69# Post-match stats models 

70from .post_match import ( 

71 BatchPlayerStatsUpdate, 

72 PlayerStatEntry, 

73 PostMatchCard, 

74 PostMatchGoal, 

75 PostMatchSubstitution, 

76) 

77 

78# Roster models 

79from .roster import ( 

80 BulkRenumberRequest, 

81 BulkRosterCreate, 

82 BulkRosterPlayer, 

83 JerseyNumberUpdate, 

84 RenumberEntry, 

85 RosterPlayerCreate, 

86 RosterPlayerResponse, 

87 RosterPlayerUpdate, 

88) 

89 

90# Season/AgeGroup models 

91from .seasons import AgeGroupCreate, AgeGroupUpdate, SeasonCreate, SeasonUpdate 

92 

93# Team models 

94from .teams import Team, TeamMappingCreate, TeamMatchTypeMapping, TeamUpdate 

95 

96# Note: MatchData has Pydantic compatibility issues, import directly if needed 

97# from .match_data import MatchData 

98 

99__all__ = [ 

100 "AdminPlayerTeamAssignment", 

101 "AdminPlayerTeamEnd", 

102 "AdminPlayerUpdate", 

103 "AdvanceWinnerRequest", 

104 "AgeGroupCreate", 

105 "AgeGroupUpdate", 

106 "BatchPlayerStatsUpdate", 

107 "BulkRenumberRequest", 

108 "BulkRosterCreate", 

109 "BulkRosterPlayer", 

110 "Club", 

111 "ClubData", 

112 "ClubWithTeams", 

113 "DivisionCreate", 

114 "DivisionUpdate", 

115 "EnhancedMatch", 

116 "ForfeitMatchRequest", 

117 "ForgotPasswordRequest", 

118 "GenerateBracketRequest", 

119 "GoalEvent", 

120 "GoalEventUpdate", 

121 "JerseyNumberUpdate", 

122 "League", 

123 "LeagueCreate", 

124 "LeagueUpdate", 

125 "LineupPositionEntry", 

126 "LineupPositionResponse", 

127 "LineupResponse", 

128 "LineupSave", 

129 "LiveCardEvent", 

130 "LiveMatchClock", 

131 "LiveMatchState", 

132 "LiveMatchSummary", 

133 "MatchEventResponse", 

134 "MatchPatch", 

135 "MatchSubmissionData", 

136 "MessageEvent", 

137 "PlayerCustomization", 

138 "PlayerHistoryCreate", 

139 "PlayerHistoryUpdate", 

140 "PlayerStatEntry", 

141 "PlayoffBracketSlot", 

142 "PostMatchCard", 

143 "PostMatchGoal", 

144 "PostMatchSubstitution", 

145 "ProfilePhotoSlot", 

146 "RefreshTokenRequest", 

147 "RenumberEntry", 

148 "ResetPasswordRequest", 

149 "RoleUpdate", 

150 "RosterPlayerCreate", 

151 "RosterPlayerResponse", 

152 "RosterPlayerUpdate", 

153 "SeasonCreate", 

154 "SeasonUpdate", 

155 "Team", 

156 "TeamData", 

157 "TeamMappingCreate", 

158 "TeamMatchTypeMapping", 

159 "TeamUpdate", 

160 "UserLogin", 

161 "UserProfile", 

162 "UserProfileUpdate", 

163 "UserSignup", 

164 "load_clubs_from_json", 

165]