Skip to content
Snippets Groups Projects
Commit 2717f169 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

fix

parent 1af0ce52
No related branches found
No related tags found
2 merge requests!123REL: Release v0.6.0,!115Use cached_get_entity_by
Pipeline #36387 failed
......@@ -589,8 +589,8 @@ def test_replace_entities_with_ids(crawler):
def mock_get_entity_by(eid=None, name=None):
if id is not None:
candidates = [el for el in list(full_data.values()) if el.id == id]
if eid is not None:
candidates = [el for el in list(full_data.values()) if el.id == eid]
if len(candidates) > 0:
return candidates[0]
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment