Skip to content

Regression in the tests with Flask-WTF>=0.13 #269

@lafrech

Description

@lafrech

I manually relaunched a test to try the new Flask-WTF release and it breaks in test_modelselectfield_multiple.

======================================================================
1) FAIL: test_modelselectfield_multiple (tests.test_forms.WTFormsAppTestCase)
----------------------------------------------------------------------
   Traceback (most recent call last):
    tests/test_forms.py line 307 in test_modelselectfield_multiple
      self.assertEqual(form.dogs.data, None)
   AssertionError: [<Dog: Dog object>, <Dog: Dog object>] != None
       '[<Dog: Dog object>, <Dog: Dog object>] != None' = '%s != %s' % _common_shorten_repr([<Dog: Dog object>, <Dog: Dog object>], None)
       '[<Dog: Dog object>, <Dog: Dog object>] != None' = self._formatMessage('[<Dog: Dog object>, <Dog: Dog object>] != None', '[<Dog: Dog object>, <Dog: Dog object>] != None')
   >>  raise self.failureException('[<Dog: Dog object>, <Dog: Dog object>] != None')

I guess something changed in Flask-WTF that breaks the test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions