Skip to content

Commit

Permalink
code-analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed Sep 20, 2023
1 parent bfe753c commit a5f43c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/imio/helpers/tests/test_transmogrifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def test_correct_id_dic(self):
self.assertEquals(correct_id(lst, 'a'), 'a-2')
self.assertEquals(correct_id(lst, 'a', True), 'a-b')


def test_correct_path(self):
self.assertEquals(correct_path(self.portal, 'abcde'), 'abcde')
self.assertIn('folder', self.portal.objectIds())
Expand Down
2 changes: 1 addition & 1 deletion src/imio/helpers/transmogrifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def correct_id(obj, oid, with_letter=False):
oid = u'{}-{}'.format(original, pfx)
i += 1
if with_letter:
pfx = letters[i-1]
pfx = letters[i - 1]
else:
pfx = i + 1
return oid
Expand Down

0 comments on commit a5f43c5

Please sign in to comment.