pylint error in test file corrected

This commit is contained in:
Gervais Naoussi 2015-12-08 13:02:51 +01:00
parent fc556602cd
commit 53870f0b05
3 changed files with 10 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# -*- coding:utf-8 -*- # -*- coding: utf-8 -*-
from openerp.tests import common from openerp.tests import common

View File

@ -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()

View File

@ -1,4 +1,4 @@
# -*- coding:utf-8 -*- # -*- coding: utf-8 -*-
from openerp.tests import common from openerp.tests import common