Skip to content

Commit 83bd449

Browse files
Tests expect arrays when calling labels() (#80)
1 parent a772711 commit 83bd449

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_bulk_loader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,8 @@ def test13_id_namespaces(self):
583583
graph = Graph(graphname, self.redis_con)
584584
query_result = graph.query('MATCH (src)-[]->(dest) RETURN src.id, src.name, LABELS(src), dest.id, dest.views, LABELS(dest) ORDER BY src.id')
585585

586-
expected_result = [['0', 'Jeffrey', 'User', '0', 20, 'Post'],
587-
['1', 'Filipe', 'User', '1', 40, 'Post']]
586+
expected_result = [['0', 'Jeffrey', ['User'], '0', 20, ['Post']],
587+
['1', 'Filipe', ['User'], '1', 40, ['Post']]]
588588
self.assertEqual(query_result.result_set, expected_result)
589589

590590
def test14_array_properties_inferred(self):
@@ -752,8 +752,8 @@ def test19_integer_ids(self):
752752
query_result = graph.query('MATCH (src)-[]->(dest) RETURN src.id, src.name, LABELS(src), dest.id, dest.views, LABELS(dest) ORDER BY src.id')
753753

754754
# The IDs of the results should be parsed as integers
755-
expected_result = [[0, 'Jeffrey', 'User', 0, 20, 'Post'],
756-
[1, 'Filipe', 'User', 1, 40, 'Post']]
755+
expected_result = [[0, 'Jeffrey', ['User'], 0, 20, ['Post']],
756+
[1, 'Filipe', ['User'], 1, 40, ['Post']]]
757757
self.assertEqual(query_result.result_set, expected_result)
758758

759759

0 commit comments

Comments
 (0)