Skip to content

Commit

Permalink
Refactor code for pep-8
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaloux committed Mar 7, 2017
1 parent 4f64661 commit 8a54015
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hr_skill/tests/test_hr_skill.py
Expand Up @@ -10,6 +10,11 @@ class TestHrSkill(TransactionCase):
def test_name_get(self):
hr_skill_model = self.env['hr.skill']
soft_skill_id = hr_skill_model.create({'name': 'Soft skill'})
leadership_skill_id = hr_skill_model.create({'name': 'Leadership', 'parent_id': soft_skill_id.id})
leadership_skill_id = hr_skill_model.create({
'name': 'Leadership',
'parent_id': soft_skill_id.id
})

self.assertEqual(leadership_skill_id.name_get(), [(leadership_skill_id.id, u'Soft skill / Leadership')])
self.assertEqual(
leadership_skill_id.name_get(),
[(leadership_skill_id.id, u'Soft skill / Leadership')])

0 comments on commit 8a54015

Please sign in to comment.