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

WIP: Remove get_all_entities() function

parent 63930e1f
No related branches found
No related tags found
No related merge requests found
...@@ -176,9 +176,9 @@ def test_entity_does_not_exist(): ...@@ -176,9 +176,9 @@ def test_entity_does_not_exist():
te = te.value te = te.value
assert te.has_error(EntityDoesNotExistError) assert te.has_error(EntityDoesNotExistError)
# Only non-existing entities caused the container error # 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): 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(): def test_insert_existent_entity():
...@@ -226,7 +226,7 @@ def test_insert_existent_entity(): ...@@ -226,7 +226,7 @@ def test_insert_existent_entity():
assert une.entity is not None assert une.entity is not None
assert pe.name == une.entity.name assert pe.name == une.entity.name
for p in (p1, p2, p3): 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(): def test_double_insertion():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment