@pytest.fixture
def form_with_checkbox():

    class TestForm(Form):
        first_name = StringField(u'First Name', validators=[validators.input_required()])
        i_agree = BooleanField(u'Yes?', validators=[])
    return _form_factory(TestForm)
@pytest.fixture
def form_with_checkbox():

    class TestForm(Form):
        first_name = StringField(u'First Name', validators=[validators.input_required()])
        i_agree = BooleanField(u'Yes?', validators=[])
    return _form_factory(TestForm)