Skip to content

Commit

Permalink
test: cover missed branches
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Jan 14, 2025
1 parent 8c37532 commit 0b783b7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@
([1, 2, 1], True, [1, 2]),
([1, 2, 3, None], True, [1, 2, 3]),
([1, 2, 3, None], False, [1, 2, 3, None]),
([None], True, []),
([None], False, [None]),
],
ids=[
"empty",
"no duplicates",
"some duplicate",
"with missing values (ignored)",
"with missing values (not ignored)",
"only missing values (ignored)",
"only missing values (not ignored)",
],
)
def test_should_get_distinct_values(values: list[Any], ignore_missing_values: bool, expected: list[Any]) -> None:
Expand Down

0 comments on commit 0b783b7

Please sign in to comment.