Coverage for seedboxsync/front/views/__init__.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-07-26 17:46 +0000

1# 

2# Copyright (C) 2015-2026 Guillaume Kulakowski <guillaume@kulakowski.fr> 

3# 

4# For the full copyright and license information, please view the LICENSE 

5# file that was distributed with this source code. 

6# 

7"""Package "view" initialization.""" 

8 

9import importlib 

10import pkgutil 

11from flask import Blueprint 

12 

13bp = Blueprint("frontend", __name__) 

14 

15 

16def _load_controllers() -> None: 

17 """Load compliant with mypy...""" 

18 for _, module_name, _ in pkgutil.iter_modules(__path__): 

19 importlib.import_module(f"{__name__}.{module_name}") 

20 

21 

22_load_controllers()