# Path: tests/common.py
# class DummyPostData(dict):
#     def getlist(self, key):
#         v = self[key]
#         if not isinstance(v, (list, tuple)):
#             v = [v]
#         return v


from tests.common import DummyPostData
from wtforms.fields import IntegerField
from wtforms.form import Form



class F(Form):
    a = IntegerField()
    b = IntegerField(default=48)


def test_integer_field():

# Path: tests/common.py
# class DummyPostData(dict):
#     def getlist(self, key):
#         v = self[key]
#         if not isinstance(v, (list, tuple)):
#             v = [v]
#         return v


# Path: tests/fields/test_integer.py
from tests.common import DummyPostData
from wtforms.fields import IntegerField
from wtforms.form import Form




class F(Form):
    a = IntegerField()
    b = IntegerField(default=48)


def test_integer_field():

    form = F(DummyPostData(a=["v"], b=["-15"]))