Skip to content

Commit 289680a

Browse files
committed
Make test universal (pypy/python different texts)
1 parent 6936083 commit 289680a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/test_forms_v2.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,7 @@ class DictModel(db.Document):
292292
FormClass = DictModel.to_wtf_form()
293293
form = FormClass(MultiDict({"dict_field": "foobar"}))
294294
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-
}
295+
assert "Cannot load data" in form.errors["dict_field"][0]
300296

301297
def test__ensure_data_is_dict__raise_error_when_input_is_a_list(self, db):
302298
class DictModel(db.Document):

0 commit comments

Comments
 (0)