From 5614cd564d7f94f556f2058d0504026d8aa55419 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Wed, 29 Jan 2020 16:11:12 +0100 Subject: [PATCH] Build: bytecode test working. --- tests/test_gremlin_python/process/test_traversal.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/test_gremlin_python/process/test_traversal.py b/tests/test_gremlin_python/process/test_traversal.py index f992cb7..e19c4a8 100644 --- a/tests/test_gremlin_python/process/test_traversal.py +++ b/tests/test_gremlin_python/process/test_traversal.py @@ -53,14 +53,10 @@ class TestTraversal: assert 2 == len(bytecode.step_instructions[2]) ## bytecode = g.V(('a',[1,2,3])).out(('b','created')).where(__.in_(('c','created'),('d','knows')).count().is_(('e',P.gt(2)))).bytecode - assert 5 == len(bytecode.bindings.keys()) - assert [1,2,3] == bytecode.bindings['a'] - assert 'created' == bytecode.bindings['b'] - assert 'created' == bytecode.bindings['c'] - assert 'knows' == bytecode.bindings['d'] - assert P.gt(2) == bytecode.bindings['e'] - assert Binding('b','created') == bytecode.step_instructions[1][1] - assert 'binding[b=created]' == str(bytecode.step_instructions[1][1]) + assert 'V' == bytecode.step_instructions[0][0] + assert 'out' == bytecode.step_instructions[1][0] + assert 'where' == bytecode.step_instructions[2][0] + assert ('b', 'created') == bytecode.step_instructions[1][1] assert isinstance(hash(bytecode.step_instructions[1][1]),int) def test_P(self): -- GitLab