merge args fix

This commit is contained in:
Erik Frojdh
2020-09-25 11:55:55 +02:00
parent 30f4c80031
commit c0be5ab8cb
3 changed files with 74 additions and 37 deletions

View File

@ -333,4 +333,10 @@ def test_add_argument_after_dict():
def test_merge_args():
assert merge_args("a", "b", 1) == ("a", "b", 1)
assert merge_args({0:1, 1:2}, "a") == ({0: (1, "a"), 1: (2, "a")},)
assert merge_args({0:1, 1:2}, "a") == ({0: (1, "a"), 1: (2, "a")},)
def test_merge_args_tuple():
assert merge_args(*("a", "b"), 5) == ("a", "b", 5)
def test_merge_args_dict_with_tuple():
assert merge_args({0: (1,2)}, 3) == ({0: (1,2,3)},)