Skip to content

Tests expect arrays when calling labels() #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/test_bulk_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ def test13_id_namespaces(self):
graph = Graph(graphname, self.redis_con)
query_result = graph.query('MATCH (src)-[]->(dest) RETURN src.id, src.name, LABELS(src), dest.id, dest.views, LABELS(dest) ORDER BY src.id')

expected_result = [['0', 'Jeffrey', 'User', '0', 20, 'Post'],
['1', 'Filipe', 'User', '1', 40, 'Post']]
expected_result = [['0', 'Jeffrey', ['User'], '0', 20, ['Post']],
['1', 'Filipe', ['User'], '1', 40, ['Post']]]
self.assertEqual(query_result.result_set, expected_result)

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

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


Expand Down