test: Use insert instead of save

This commit is contained in:
Gavin D'souza 2020-11-03 15:42:52 +05:30
parent 50f6f83912
commit 5ba92a3ae1

View file

@ -312,7 +312,7 @@ class TestDocument(unittest.TestCase):
{"role": "System Manager", "read": 1}
],
})
doc.save()
doc.insert()
# check if module exists exists;
# if custom, get_controller will return Document class
# if not custom, a different class will be returned