Skip to content

Commit 1b1dab6

Browse files
committed
Splitted generators tests
1 parent c89ef8e commit 1b1dab6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_helpers_generators.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44

55

66
class TestHelpersGenerators(unittest.TestCase):
7-
def test_get_list_chunks(self):
7+
def test_get_list_chunks_for_big_list(self):
88
mocked_iterable = get_list_chunks(list(range(15)), 10)
99
chunk = next(mocked_iterable)
1010
self.assertEqual(len(chunk), 10)
1111
chunk = next(mocked_iterable)
1212
self.assertEqual(len(chunk), 5)
1313

14+
def test_get_list_chunks_for_small_list(self):
1415
mocked_iterable = get_list_chunks(list(range(5)), 10)
1516
chunk = next(mocked_iterable)
1617
self.assertEqual(len(chunk), 5)

0 commit comments

Comments
 (0)