Rollback cursor after exception in one2one tests
This commit is contained in:
1 parent
0d1c43b6ed
commit
942fa7ac92
1 file changed
+3
@@ -2176,14 +2176,17 @@ class FieldsTestCase(unittest.TestCase):
|
||||
'name': 'one2one3',
|
||||
'one2one': target1_id,
|
||||
})
|
||||
transaction.cursor.rollback()
|
||||
|
||||
self.failUnlessRaises(Exception, self.one2one.write, one2one2_id, {
|
||||
'one2one': target1_id,
|
||||
})
|
||||
transaction.cursor.rollback()
|
||||
|
||||
self.failUnlessRaises(Exception, self.one2one_required.create, {
|
||||
'name': 'one2one3',
|
||||
})
|
||||
transaction.cursor.rollback()
|
||||
|
||||
target3_id = self.one2one_target.create({
|
||||
'name': 'target3_id',
|
||||
|
||||
Reference in new issue
Block a user