Add MPTT test for nested create
issue5095 review24571002
This commit is contained in:
1 parent
5c062ebeea
commit
d17c4b550e
1 file changed
+10
@@ -181,6 +181,16 @@ class MPTTTestCase(unittest.TestCase):
|
||||
|
||||
self.assertTrue(mock.called)
|
||||
|
||||
def test0070_nested_create(self):
|
||||
with Transaction().start(DB_NAME, USER, context=CONTEXT):
|
||||
record, = self.mptt.create([{
|
||||
'name': 'Test nested create 1',
|
||||
'childs': [('create', [{
|
||||
'name': 'Test nested create 1 1',
|
||||
}])],
|
||||
}])
|
||||
self.CheckTree()
|
||||
|
||||
|
||||
def suite():
|
||||
return unittest.TestLoader().loadTestsFromTestCase(MPTTTestCase)
|
||||
Reference in new issue
Block a user