Skip to content

Commit

Permalink
test: unit test for helper function
Browse files Browse the repository at this point in the history
expected behavior is to return an ordered list of the unique values
  • Loading branch information
angela-tran committed Mar 22, 2024
1 parent d79f06c commit f3fe500
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pytest/core/test_context_processors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from benefits.core.context_processors import unique_values


def test_unique_values():
original_list = ["a", "b", "c", "a", "a", "zzz", "b", "c", "d", "b"]

new_list = unique_values(original_list)

assert new_list == ["a", "b", "c", "zzz", "d"]

0 comments on commit f3fe500

Please sign in to comment.