From 63930e1fedbb606abe70cde80251c28a74cc153f Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Mon, 21 Sep 2020 14:48:42 +0200 Subject: [PATCH] WIP: Remove get_entities() function --- tests/test_error_stuff.py | 4 ++-- tests/test_tickets.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_error_stuff.py b/tests/test_error_stuff.py index 971bca8..3020e4b 100644 --- a/tests/test_error_stuff.py +++ b/tests/test_error_stuff.py @@ -299,6 +299,6 @@ def test_double_insertion(): te = te.value assert te.has_error(UniqueNamesError) # c2 caused the ContainerError - assert te.get_container() == c2 + assert te.container == c2 # exactly 5 faulty entities in c2 - assert len(te.get_entities()) == 5 + assert len(te.entities) == 5 diff --git a/tests/test_tickets.py b/tests/test_tickets.py index e246e0e..783d2ea 100644 --- a/tests/test_tickets.py +++ b/tests/test_tickets.py @@ -88,7 +88,7 @@ def test_ticket_103a(): exc = e.value print(exc) assert 128 == int(exc.get_errors()[0].get_code()) - rt = exc.get_entities()[0] + rt = exc.entities[0] assert not rt.is_valid() for w in rt.get_warnings(): -- GitLab