Skip to content

Commit

Permalink
basic test added - wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rrmerugu committed Apr 4, 2022
1 parent b317ae9 commit 7154137
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_execute_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

def test_execute_query():
graph = InvanaGraph("ws://localhost:8182/gremlin")
response = graph.connector.execute_query("mgmt = graph.openManagement(); mgmt.printSchema()")
# response = graph.connector.execute_query("g.addV('person').property('name', 'Rav').next()")
response = graph.connector.execute_query("g.V().limit(1).elementMap().toList()")
print("===================",response.data)
assert response.status_code == 200
assert response.data is not None
graph.close_connection()

0 comments on commit 7154137

Please # to comment.