In unit test first we have to check all module in addons then after access to the new API in unittest inside common.TransactionCase and others function .
For example you can see below code.
class test_partner_firstname(common.TransactionCase):
def setUp(self):
super(test_partner_firstname, self).setUp()
self.user_model = self.env["res.users"]
self.partner_model = self.env["res.partner"]
Note- With the help of this code we can get new api for unittest.
0 Comment(s)