Skip to content

Commit 3875d97

Browse files
committed
Covering tagging.utils module at 100%
1 parent 10def02 commit 3875d97

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tagging/tests/tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def test_tags_with_double_quotes_can_contain_commas(self):
8282
['a-one', 'a-two, and a-three'])
8383
self.assertEqual(parse_tag_input('"two", one, one, two, "one"'),
8484
['one', 'two'])
85+
self.assertEqual(parse_tag_input('two", one'),
86+
['one', 'two'])
8587

8688
def test_with_naughty_input(self):
8789
""" Test with naughty input. """

tagging/utils.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ def split_strip(input, delimiter=','):
8989
Splits ``input`` on ``delimiter``, stripping each resulting string
9090
and returning a list of non-empty strings.
9191
"""
92-
if not input:
93-
return []
94-
9592
words = [w.strip() for w in input.split(delimiter)]
9693
return [w for w in words if w]
9794

0 commit comments

Comments
 (0)