From 773ab364ce7cb987e0f1c3625dcfc54ce6af0fc4 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Thu, 16 Jul 2020 10:58:53 +0200 Subject: [PATCH] TST: New error handling in tst_datatype --- tests/test_datatype.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_datatype.py b/tests/test_datatype.py index 5fbe5dd..196d13b 100644 --- a/tests/test_datatype.py +++ b/tests/test_datatype.py @@ -204,4 +204,5 @@ def test_datatype_mismatch_in_response(): with raises(db.TransactionError) as exc: # should not raise ValueError but transaction error. 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." -- GitLab