File: test_submit.py

package info (click to toggle)
wtforms 3.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,064 kB
  • sloc: python: 5,264; makefile: 27; sh: 17
file content (10 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from wtforms.fields import SubmitField
from wtforms.form import Form


class F(Form):
    a = SubmitField("Label")


def test_submit_field():
    assert F().a() == """<input id="a" name="a" type="submit" value="Label">"""