Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Unittest in Odoo

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 366
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: