tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject [1/2] tinkerpop git commit: added a test to ensure ReferenceVertex serialization and deserializtion by Python GraphSON module. Tests pass. CTR.
Date Thu, 21 Sep 2017 18:45:54 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/master 6278e3ba3 -> 6b337324b


added a test to ensure ReferenceVertex serialization and deserializtion by Python GraphSON
module. Tests pass. CTR.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/98ed3d41
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/98ed3d41
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/98ed3d41

Branch: refs/heads/master
Commit: 98ed3d419743ffa1a949fd79153e0d8d1a00cd09
Parents: aaa0f14
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Thu Sep 21 12:43:53 2017 -0600
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Thu Sep 21 12:43:53 2017 -0600

----------------------------------------------------------------------
 .../gremlin/python/structure/io/graphson/GraphSONReaderTest.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/98ed3d41/gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/structure/io/graphson/GraphSONReaderTest.java
----------------------------------------------------------------------
diff --git a/gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/structure/io/graphson/GraphSONReaderTest.java
b/gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/structure/io/graphson/GraphSONReaderTest.java
index 86bdd21..e10d2a6 100644
--- a/gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/structure/io/graphson/GraphSONReaderTest.java
+++ b/gremlin-python/src/test/java/org/apache/tinkerpop/gremlin/python/structure/io/graphson/GraphSONReaderTest.java
@@ -62,11 +62,14 @@ public class GraphSONReaderTest {
         jythonEngine.getBindings(ScriptContext.ENGINE_SCOPE).put("x", mapper.writeValueAsString(vertex));
         assertEquals(vertex.toString(), jythonEngine.eval("str(graphson_reader.readObject(x))"));
         assertTrue((Boolean) jythonEngine.eval("isinstance(graphson_reader.readObject(x),Vertex)"));
+        assertEquals("person", jythonEngine.eval("graphson_reader.readObject(x).label"));
+        assertEquals(1, jythonEngine.eval("graphson_reader.readObject(x).id"));
         //
         final Edge edge = g.V(1).outE("created").next();
         jythonEngine.getBindings(ScriptContext.ENGINE_SCOPE).put("x", mapper.writeValueAsString(edge));
         assertEquals(edge.toString(), jythonEngine.eval("str(graphson_reader.readObject(x))"));
         assertTrue((Boolean) jythonEngine.eval("isinstance(graphson_reader.readObject(x),Edge)"));
+        assertEquals("created", jythonEngine.eval("graphson_reader.readObject(x).label"));
         //
         final VertexProperty vertexProperty = (VertexProperty) g.V(1).properties("name").next();
         jythonEngine.getBindings(ScriptContext.ENGINE_SCOPE).put("x", mapper.writeValueAsString(vertexProperty));


Mime
View raw message