summaryrefslogtreecommitdiff
path: root/tests/test_asyncio/test_graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_asyncio/test_graph.py')
-rw-r--r--tests/test_asyncio/test_graph.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/test_asyncio/test_graph.py b/tests/test_asyncio/test_graph.py
index 7824256..7e70baa 100644
--- a/tests/test_asyncio/test_graph.py
+++ b/tests/test_asyncio/test_graph.py
@@ -406,7 +406,7 @@ async def test_execution_plan(modclient: redis.Redis):
"MATCH (r:Rider)-[:rides]->(t:Team) WHERE t.name = $name RETURN r.name, t.name, $params", # noqa
{"name": "Yehuda"},
)
- expected = "Results\n Project\n Conditional Traverse | (t:Team)->(r:Rider)\n Filter\n Node By Label Scan | (t:Team)" # noqa
+ expected = "Results\n Project\n Conditional Traverse | (t)->(r:Rider)\n Filter\n Node By Label Scan | (t:Team)" # noqa
assert result == expected
await redis_graph.delete()
@@ -437,11 +437,11 @@ Results
Distinct
Join
Project
- Conditional Traverse | (t:Team)->(r:Rider)
+ Conditional Traverse | (t)->(r:Rider)
Filter
Node By Label Scan | (t:Team)
Project
- Conditional Traverse | (t:Team)->(r:Rider)
+ Conditional Traverse | (t)->(r:Rider)
Filter
Node By Label Scan | (t:Team)"""
assert str(result).replace(" ", "").replace("\n", "") == expected.replace(
@@ -453,9 +453,7 @@ Distinct
Operation("Join")
.append_child(
Operation("Project").append_child(
- Operation(
- "Conditional Traverse", "(t:Team)->(r:Rider)"
- ).append_child(
+ Operation("Conditional Traverse", "(t)->(r:Rider)").append_child(
Operation("Filter").append_child(
Operation("Node By Label Scan", "(t:Team)")
)
@@ -464,9 +462,7 @@ Distinct
)
.append_child(
Operation("Project").append_child(
- Operation(
- "Conditional Traverse", "(t:Team)->(r:Rider)"
- ).append_child(
+ Operation("Conditional Traverse", "(t)->(r:Rider)").append_child(
Operation("Filter").append_child(
Operation("Node By Label Scan", "(t:Team)")
)