@pytest.fixture
def basic_form():

    class TestForm(Form):
        first_name = StringField(u'First Name', validators=[validators.input_required()])
        last_name = StringField(u'Last Name', validators=[])
    return _form_factory(TestForm)
@pytest.fixture
def basic_form():

    class TestForm(Form):
        first_name = StringField(u'First Name', validators=[validators.input_required()])
        last_name = StringField(u'Last Name', validators=[])
    return _form_factory(TestForm)