Skip to content Skip to sidebar Skip to footer

Can't Post Flask Form Data For Testing (fieldlist) [deprecationwarning]

I'm writing several different flask forms. So far, what I've done to test the routes that I use with those forms is. Creating the form object Populating the form Posting the form

Solution 1:

FieldList is a handy wrapper of a group of fields in WTF. While posting data, you should use the original form, for the second form, the payload should be as follows:

{
  'components-0-component': 'app-a',
  'components-0-source': 'nexus',
  'components-0-version': '1.2.3',
  'components-1-component': 'app-b',
  'components-1-source': 'nexus',
  'components-1-version': '3.2.1',
  ...
}

Post a Comment for "Can't Post Flask Form Data For Testing (fieldlist) [deprecationwarning]"