Skip to content
Snippets Groups Projects
Commit 773ab364 authored by florian's avatar florian
Browse files

TST: New error handling in tst_datatype

parent 7ff260df
Branches
Tags
No related merge requests found
...@@ -204,4 +204,5 @@ def test_datatype_mismatch_in_response(): ...@@ -204,4 +204,5 @@ def test_datatype_mismatch_in_response():
with raises(db.TransactionError) as exc: with raises(db.TransactionError) as exc:
# should not raise ValueError but transaction error. # should not raise ValueError but transaction error.
rt.insert() rt.insert()
assert exc.value.get_errors()[0].msg == "Cannot parse value to double." assert exc.value.get_errors()[0].get_errors(
)[0].msg == "Cannot parse value to double."
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment