Example #1
0
class MockFormWithAlwaysError(FlaskForm):
    field = Field(validators=[Required(), AlwaysError()])
Example #2
0
class MockFormStopFalse(FlaskForm):
    field_1 = StringField(
        validators=[EqualTo("field_2", stop=False),
                    AlwaysError()])
    field_2 = StringField()
Example #3
0
class MockFormStopFalse(FlaskForm):
    email = Field(validators=[EmailFormat(stop=False), AlwaysError()])
Example #4
0
class MockFormMin3Max6StopFalse(FlaskForm):
    field = Field(validators=[
        Length(min_length=3, max_length=6, stop=False),
        AlwaysError()
    ])