Skip to content

Commit 68bab6a

Browse files
Fix property comparison bug on e2e correctness (#276)
1 parent 0684a64 commit 68bab6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

e2e_correctness/query_neo_mem.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,17 @@ def __eq__(self, other):
5151
f"_labels different between {self._id} and {other._id}: {self._labels} vs {other._labels}"
5252
)
5353
return False
54+
55+
if len(self._properties) != len(other._properties):
56+
return False
5457
for k, v in self._properties.items():
5558
if k not in other._properties:
5659
logger.debug(f"Property with key {k} not in {other._properties.keys()}")
5760
return False
5861
if v != other._properties[k]:
5962
logger.debug(f"Value {v} not equal to {other._properties[k]}")
6063
return False
64+
6165
return True
6266

6367

@@ -100,6 +104,9 @@ def __eq__(self, other):
100104
if self._label != other._label:
101105
logger.debug(f"Label is different {self._label} <> {other._label}")
102106
return False
107+
108+
if len(self._properties) != len(other._properties):
109+
return False
103110
for k, v in self._properties.items():
104111
if k not in other._properties:
105112
logger.debug(f"Property with key {k} not in {other._properties.keys()}")

0 commit comments

Comments
 (0)