Coverage for bundesliga_tippspiel/routes/__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

12 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 bundesliga_tippspiel.routes.betting import define_blueprint as __betting 

21from bundesliga_tippspiel.routes.info import define_blueprint as __info 

22from bundesliga_tippspiel.routes.settings import define_blueprint as __settings 

23from bundesliga_tippspiel.routes.stats import define_blueprint as __stats 

24from bundesliga_tippspiel.routes.tables import define_blueprint as __tables 

25from bundesliga_tippspiel.routes.chat import define_blueprint as __chat 

26from bundesliga_tippspiel.routes.api.betting import \ 

27 define_blueprint as __api_betting 

28from bundesliga_tippspiel.routes.api.info import define_blueprint as __api_info 

29 

30from flask.blueprints import Blueprint 

31from typing import List, Tuple, Callable 

32 

33blueprint_generators: List[Tuple[Callable[[str], Blueprint], str]] = [ 

34 (__info, "info"), 

35 (__betting, "betting"), 

36 (__settings, "settings"), 

37 (__chat, "chat"), 

38 (__tables, "tables"), 

39 (__stats, "stats"), 

40 (__api_betting, "api_betting"), 

41 (__api_info, "api_info") 

42] 

43""" 

44Defines the functions used to create the various blueprints 

45as well as their names 

46"""