Technical requirements
In this chapter, we will look at all of the test cases in detail. In order to cover all of the test cases in a single module, we have created a small module. Its Python definition is as follows:
class LibraryBook(models.Model): Â Â Â Â _name = 'library.book' Â Â Â Â name = fields.Char('Title', required=True) Â Â Â Â date_release = fields.Date('Release Date') Â Â Â Â author_ids = fields.Many2many('res.partner', string='Authors') Â Â Â Â state = fields.Selection( Â Â Â Â Â Â Â Â [('draft', 'Not Available'), Â Â Â Â Â Â Â Â Â ('available', 'Available'), Â Â Â Â Â Â Â Â Â ('lost', 'Lost')], Â Â Â Â Â Â Â Â 'State', default="draft...