File tree Expand file tree Collapse file tree
docs/api/cassandra/cqlengine
tests/integration/cqlengine Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66* Pass name of server auth class to AuthProvider (PYTHON-454)
77* Surface schema agreed flag for DDL statements (PYTHON-458)
88* Automatically convert float and int to Decimal on serialization (PYTHON-468)
9+ * Expose prior state information via cqlengine LWTException (github #343)
910
1011Bug Fixes
1112---------
Original file line number Diff line number Diff line change 9696 TestIfNotExistsModel.if_not_exists().create(id = id , count = 9 , text = ' 111111111111' )
9797 except LWTException as e:
9898 # handle failure case
99- print e.existing # existing object
99+ print e.existing # dict containing LWT result fields
100100
101101 This method is supported on Cassandra 2.0 or later.
102102
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def test_insert_if_not_exists_success(self):
8585 with self .assertRaises (LWTException ) as assertion :
8686 TestIfNotExistsModel .if_not_exists ().create (id = id , count = 9 , text = '111111111111' )
8787
88- self .assertEquals (assertion .exception .existing , {
88+ self .assertEqual (assertion .exception .existing , {
8989 'count' : 8 ,
9090 'id' : id ,
9191 'text' : '123456789' ,
@@ -128,7 +128,7 @@ def test_batch_insert_if_not_exists_success(self):
128128 with self .assertRaises (LWTException ) as assertion :
129129 b .execute ()
130130
131- self .assertEquals (assertion .exception .existing , {
131+ self .assertEqual (assertion .exception .existing , {
132132 'count' : 8 ,
133133 'id' : id ,
134134 'text' : '123456789' ,
You can’t perform that action at this time.
0 commit comments