mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-19 09:53:38 -06:00
lint error corrected in test file
This commit is contained in:
parent
432d141ce0
commit
07dd7898bb
@ -9,14 +9,16 @@ class TestDocumentPageApproval(common.TransactionCase):
|
||||
def test_get_display_content(self):
|
||||
"""Test page display content."""
|
||||
# Check content of a category
|
||||
category = self.env['document.page'].search(
|
||||
[('name', '=', 'OpenERP Features')])
|
||||
category = self.env['document.page'].search([
|
||||
('name', '=', 'OpenERP Features')
|
||||
])
|
||||
|
||||
self.assertIsNotNone(category.display_content, 'a category')
|
||||
|
||||
# Check content of a page
|
||||
pages = self.env['document.page'].search(
|
||||
[('parent_id', '=', category.id)])
|
||||
pages = self.env['document.page'].search([
|
||||
('parent_id', '=', category.id)
|
||||
])
|
||||
page = pages[0]
|
||||
self.assertIsNotNone(page.display_content, 'Page content')
|
||||
|
||||
@ -32,4 +34,4 @@ class TestDocumentPageApproval(common.TransactionCase):
|
||||
self.assertTrue(page.is_approval_required(page))
|
||||
|
||||
# Check if parent approval is required
|
||||
self.assertFalse(page.is_parent_approval_required)
|
||||
self.assertTrue(page.is_parent_approval_required)
|
||||
|
Loading…
Reference in New Issue
Block a user