Coverage for seedboxsync/front/forms/csrf.py: 100%
2 statements
« prev ^ index » next coverage.py v7.16.1, created at 2026-09-26 17:14 +0000
« 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 WTForms dummy form for CSRF validation."""
9from flask_wtf import FlaskForm
12class EmptyCSRFForm(FlaskForm): # type: ignore[misc]
13 """
14 Empty WTForms form used exclusively for validating CSRF tokens.
16 Serves as a lightweight form wrapper when performing non-data POST actions
17 (such as deletions or state toggles) to ensure CSRF protection.
18 """