flectra/addons/helpdesk_forum/tests/test_helpdesk.py

27 lines
1.0 KiB
Python
Raw Normal View History

# Part of Flectra See LICENSE file for full copyright and licensing details.
from flectra.tests.common import TransactionCase
class TestHelpdeskForum(TransactionCase):
def setUp(self):
""" setUp ***"""
super(TestHelpdeskForum, self).setUp()
def test_00_helpdesk_forum_workflow(self):
team = self.env['helpdesk.team'].create({
'name': 'Test team software',
'alias_name': 'test_team_software',
'issue_type_ids':
[(4, self.env.ref('helpdesk_basic.issue_type_software').id)],
'stage_ids':
[(6, 0, [self.env.ref('helpdesk_basic.helpdesk_stage_new').id,
self.env.ref(
'helpdesk_basic.helpdesk_stage_in_progress').id,
self.env.ref(
'helpdesk_basic.helpdesk_stage_done').id])],
'member_ids': [(6, 0, [self.env.ref('base.user_demo').id])]
})
self.assertTrue(team.forum_id, 'Helpdesk Team forum creation fails')