Skip to content

Commit

Permalink
Completes multidigraph test for WHERE on node attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jackboyla committed May 22, 2024
1 parent 46f5261 commit 6748db7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion grandcypher/test_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,10 +1002,15 @@ def test_multigraph_where_node_attribute(self):

qry = """
MATCH (a)-[r]->(b)
WHERE a.name == "Alice" OR b.name == "Bob"
WHERE a.name == "Alice"
RETURN a.name, b.name, r.__labels__, r.years, r.friendly
"""
res = GrandCypher(host).run(qry)
assert res["a.name"] == ["Alice"]
assert res["b.name"] == ["Bob"]
assert res["r.__labels__"] == [{0: {'friend'}}]
assert res["r.years"] == [{0: 1}]
assert res["r.friendly"] == [{0: 'very'}]


class TestVariableLengthRelationship:
Expand Down

0 comments on commit 6748db7

Please sign in to comment.