Skip to content

Commit

Permalink
add test for invalid return type
Browse files Browse the repository at this point in the history
  • Loading branch information
n8pease committed Apr 1, 2022
1 parent f0ec588 commit 844dc37
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_cliUtilSplitKv.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ def test_reverseKv(self):
{"1": "first", "second": "key"},
)

def test_invalidResultType(self):
with self.assertRaises(click.ClickException):
split_kv(
"context",
"param",
"first=1,second=2",
return_type=set,
)


class SplitKvCmdTestCase(unittest.TestCase):
"""Tests using split_kv with a command."""
Expand Down

0 comments on commit 844dc37

Please # to comment.