Coverage for bundesliga_tippspiel/db/__init__.py: 100%

Shortcuts on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

17 statements  

1"""LICENSE 

2Copyright 2017 Hermann Krumrey <hermann@krumreyh.com> 

3 

4This file is part of bundesliga-tippspiel. 

5 

6bundesliga-tippspiel is free software: you can redistribute it and/or modify 

7it under the terms of the GNU General Public License as published by 

8the Free Software Foundation, either version 3 of the License, or 

9(at your option) any later version. 

10 

11bundesliga-tippspiel is distributed in the hope that it will be useful, 

12but WITHOUT ANY WARRANTY; without even the implied warranty of 

13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 

14GNU General Public License for more details. 

15 

16You should have received a copy of the GNU General Public License 

17along with bundesliga-tippspiel. If not, see <http://www.gnu.org/licenses/>. 

18LICENSE""" 

19 

20from typing import List 

21from jerrycan.base import db 

22from bundesliga_tippspiel.db.SeasonEvent import SeasonEvent 

23from bundesliga_tippspiel.db.match_data.Player import Player 

24from bundesliga_tippspiel.db.match_data.Goal import Goal 

25from bundesliga_tippspiel.db.match_data.Match import Match 

26from bundesliga_tippspiel.db.match_data.Team import Team 

27from bundesliga_tippspiel.db.user_generated.Bet import Bet 

28from bundesliga_tippspiel.db.user_generated.SeasonWinner import SeasonWinner 

29from bundesliga_tippspiel.db.user_generated.ChatMessage import ChatMessage 

30from bundesliga_tippspiel.db.settings.ReminderSettings import ReminderSettings 

31from bundesliga_tippspiel.db.user_generated.MatchdayWinner import \ 

32 MatchdayWinner 

33from bundesliga_tippspiel.db.user_generated.UserProfile import UserProfile 

34from bundesliga_tippspiel.db.settings.DisplayBotsSettings import \ 

35 DisplayBotsSettings 

36from bundesliga_tippspiel.db.user_generated.LeaderboardEntry import \ 

37 LeaderboardEntry 

38 

39models: List[db.Model] = [ 

40 Player, 

41 Goal, 

42 Match, 

43 Team, 

44 Bet, 

45 SeasonWinner, 

46 MatchdayWinner, 

47 SeasonEvent, 

48 ReminderSettings, 

49 DisplayBotsSettings, 

50 ChatMessage, 

51 LeaderboardEntry, 

52 UserProfile 

53] 

54""" 

55The database models of the application 

56"""