From 0b4b349d97e0e3bc5687a98a4676c5ae565d0857 Mon Sep 17 00:00:00 2001 From: Leifur Halldor Asgeirsson <lasgeirsson@zerofail.com> Date: Tue, 8 Nov 2016 14:07:26 -0500 Subject: [PATCH] `v.id` -> `v.id()` in a gremlin string in a test `v.id` was working because `id` is a public field on TinkerGraph vertices, but that field isn't part of the [Vertex][1] interface. The id() method should work regardless of vendor. (The id field isn't available on DSE). [1]: http://tinkerpop.apache.org/javadocs/3.1.5/core/index.html?org/apache/tinkerpop/gremlin/structure/Vertex.html --- tests/test_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_client.py b/tests/test_client.py index 889ffe6..7ea7564 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -57,7 +57,7 @@ async def test_sessioned_client(cluster): except KeyError: assert msg['properties']['name'][0]['@value']['value'] == 'joe' - resp = await client.submit(gremlin="g.V(v.id).values('name')") + resp = await client.submit(gremlin="g.V(v.id()).values('name')") async for msg in resp: assert msg == 'joe' -- GitLab