From 78ba17ee8bbfc81bdcf840c7b6f4609831b4c0c0 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Mon, 21 Sep 2020 14:59:29 +0200 Subject: [PATCH] WIP: Remove TransactionError.get_code() function --- tests/test_tickets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_tickets.py b/tests/test_tickets.py index 783d2ea..21efb00 100644 --- a/tests/test_tickets.py +++ b/tests/test_tickets.py @@ -87,7 +87,7 @@ def test_ticket_103a(): rt.update(strict=True) exc = e.value print(exc) - assert 128 == int(exc.get_errors()[0].get_code()) + assert 128 == int(exc.errors[0].code) rt = exc.entities[0] assert not rt.is_valid() -- GitLab