mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-21 11:37:26 -06:00
pylint error in test file corrected
This commit is contained in:
parent
fc556602cd
commit
53870f0b05
@ -1,4 +1,4 @@
|
|||||||
# -*- coding:utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from openerp.tests import common
|
from openerp.tests import common
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# -*- coding:utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from openerp.tests import common
|
from openerp.tests import common
|
||||||
|
|
||||||
@ -8,13 +8,14 @@ class TestDocumentPageCreateMenu(common.TransactionCase):
|
|||||||
|
|
||||||
def test_page_menu_creation(self):
|
def test_page_menu_creation(self):
|
||||||
"""Test page menu creation."""
|
"""Test page menu creation."""
|
||||||
|
|
||||||
menu_parent = self.env.ref('base.menu_base_partner')
|
menu_parent = self.env.ref('base.menu_base_partner')
|
||||||
|
|
||||||
menu_created = self.env['document.page.create.menu'].create({
|
menu_created = self.env['document.page.create.menu'].create({
|
||||||
'menu_name': 'Wiki Test menu',
|
'menu_name': 'Wiki Test menu', 'menu_parent_id': menu_parent.id})
|
||||||
'menu_parent_id': menu_parent.id
|
|
||||||
})
|
|
||||||
|
|
||||||
menu = self.env['document.page.create.menu'].search([('id', '=', menu_created.id)])
|
menu = self.env['document.page.create.menu'].search(
|
||||||
menu.with_context(active_id=[self.ref('document_page.demo_page1')]).document_page_menu_create()
|
[('id', '=', menu_created.id)]
|
||||||
|
)
|
||||||
|
menu.with_context(
|
||||||
|
active_id=[self.ref('document_page.demo_page1')]
|
||||||
|
).document_page_menu_create()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# -*- coding:utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from openerp.tests import common
|
from openerp.tests import common
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user