From aac37ca85bf7b66f8d0407fe9444dc7e491ab0f8 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Mon, 21 Sep 2020 14:56:40 +0200 Subject: [PATCH] WIP: Remove get_all_entities() function --- tests/test_error_stuff.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_error_stuff.py b/tests/test_error_stuff.py index 3020e4b..c21c41e 100644 --- a/tests/test_error_stuff.py +++ b/tests/test_error_stuff.py @@ -176,9 +176,9 @@ def test_entity_does_not_exist(): te = te.value assert te.has_error(EntityDoesNotExistError) # Only non-existing entities caused the container error - assert not pe.name in [x.name for x in te.get_all_entities()] + assert not pe.name in [x.name for x in te.all_entities] for p in (p1, p2, p3): - assert p.name in [x.name for x in te.get_all_entities()] + assert p.name in [x.name for x in te.all_entities] def test_insert_existent_entity(): @@ -226,7 +226,7 @@ def test_insert_existent_entity(): assert une.entity is not None assert pe.name == une.entity.name for p in (p1, p2, p3): - assert not p in te.get_all_entities() + assert p not in te.all_entities def test_double_insertion(): -- GitLab