Skip to content

Commit

Permalink
Updated Version Number to v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostico committed Nov 29, 2014
1 parent c7fdaa8 commit e3afe48
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyorient/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Driver Constants
#
NAME = "OrientDB Python binary client (pyorient)"
VERSION = "1.1.2"
VERSION = "1.2"
SUPPORTED_PROTOCOL = 25

#
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from setuptools import setup

setup(name='pyorient',
version='1.1.2',
version='1.2',
author='Niko Usai <mogui83@gmail.com>, Domenico Lupinetti <ostico@gmail.com>',
description='OrientDB native client library',
long_description=open('README.md').read(),
Expand Down
33 changes: 32 additions & 1 deletion test/test_reserved_words_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,36 @@ def test_sql_batch(self):
assert edge_result[0]._out.get_hash() == "#9:100", \
"out is not equal to '#9:101': %r" % edge_result[0]._out.get_hash()

def test_sql_batch_2(self):

cluster_id = self.client.command("create class fb extends V")
cluster_id = self.client.command("create class response extends V")
cluster_id = self.client.command("create class followed_by extends E")

cluster_id = self.client.batch( (
"begin;"
"let a = create vertex fb set name = 'd1';"
"let b = create vertex response set name = 'a1';"
"create edge followed_by from $a to $b;"
"commit;"
) )

def test_sql_batch_3(self):

cluster_id = self.client.command("create class fb extends V")
cluster_id = self.client.command("create class response extends V")
cluster_id = self.client.command("create class followed_by extends E")

cmd = (
"begin;"
"let a = create vertex fb set name = 'd1';"
"let c = select from fb limit 1;"
"let d = select from response limit 1;"
"let e = create edge from $c to $d;"
"commit;"
)

cluster_id = self.client.batch(cmd)


# x = CommandTestCase('test_reserved_words').run()
# x = CommandTestCase('test_sql_batch_2').run()

0 comments on commit e3afe48

Please sign in to comment.