Coverage for seedboxsync/front/views/frontend/homepage.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.16.1, created at 2026-09-26 17:14 +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"""SeedboxSync Flask view for homepage.""" 

8 

9from flask import render_template 

10from seedboxsync.front.cache import cached 

11from seedboxsync.front.login_manager import login_required 

12from seedboxsync.front.views import bp_frontend as bp 

13 

14 

15@bp.route("/") 

16@cached(timeout=300) # pyright: ignore [reportUntypedFunctionDecorator] 

17@login_required # type: ignore[untyped-decorator] 

18def homepage() -> str: 

19 """ 

20 Render the home page view. 

21 

22 Renders the main dashboard template using the active application configuration (cached for 5 minutes). 

23 

24 Returns: 

25 str: Rendered HTML template for the home page. 

26 """ 

27 return render_template("homepage.html")