Skip to content

Commit

Permalink
test: Add test_subset_comma_list
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmd committed Jul 22, 2024
1 parent 5844e6b commit f0373f2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions keeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,6 +1621,15 @@ def test_subset_list():
assert not subset_list(l2, l0)


def test_subset_comma_list():
s1 = '8.19'
s2 = '8.18,8.19,8.20,dev'
s3 = '8.4'
s4 = '8.40,dev'
assert subset_comma_list(s1, s2)
assert not subset_comma_list(s3, s4)


def test_equalize_args():
assert (equalize_args({"VAR1": "value1", "VAR2": "value2"}) ==
['VAR1=value1', 'VAR2=value2'])
Expand Down

0 comments on commit f0373f2

Please sign in to comment.