Skip to content

Commit

Permalink
TST: Clarify dictionary_product tests slightly
Browse files Browse the repository at this point in the history
skipci
  • Loading branch information
cortadocodes committed Aug 6, 2024
1 parent d4c1953 commit 59db6ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/utils/test_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ def test_with_empty_iterables(self):

def test_with_one_iterable(self):
"""Test providing one iterable gives an output of each of the iterable's values individually."""
self.assertEqual(list(dictionary_product(one=["a", "b"])), [{"one": "a"}, {"one": "b"}])
self.assertEqual(
list(dictionary_product(one=["a", "b"])),
[{"one": "a"}, {"one": "b"}],
)

def test_with_two_iterables(self):
"""Test providing two iterables gives the combinations of the iterables' values."""
Expand Down Expand Up @@ -65,7 +68,7 @@ def test_none_iterable_ignored_by_default(self):

def test_none_iterable_not_ignored_if_keep_none_values(self):
"""Test that a `None` iterable isn't ignored and is included in the outputs without increasing the number of
outputs.
outputs if `keep_none_values=True`.
"""
self.assertEqual(
list(dictionary_product(one=["a", "b"], two=["c", "d"], three=None, keep_none_values=True)),
Expand Down

0 comments on commit 59db6ed

Please sign in to comment.