We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6936083 commit 289680aCopy full SHA for 289680a
tests/test_forms_v2.py
@@ -292,11 +292,7 @@ class DictModel(db.Document):
292
FormClass = DictModel.to_wtf_form()
293
form = FormClass(MultiDict({"dict_field": "foobar"}))
294
assert not form.validate()
295
- assert form.errors == {
296
- "dict_field": [
297
- "Cannot load data: Expecting value: line 1 column 1 (char 0)"
298
- ]
299
- }
+ assert "Cannot load data" in form.errors["dict_field"][0]
300
301
def test__ensure_data_is_dict__raise_error_when_input_is_a_list(self, db):
302
class DictModel(db.Document):
0 commit comments