aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-02-24 19:45:09 +0100
committerGravatar Numerlor <[email protected]>2020-02-24 19:45:09 +0100
commit6174792c01f238e32aca5cc9222caa4feb788281 (patch)
tree9f160ad764d1a3a2cad9e9e98dbc327d914f44ea /tests
parentChange docstring mood. (diff)
Remove unused `chunks` function and its tests.
The function was only used in the since removed `Events` cog.
Diffstat (limited to 'tests')
-rw-r--r--tests/bot/test_utils.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/bot/test_utils.py b/tests/bot/test_utils.py
index 58ae2a81a..d7bcc3ba6 100644
--- a/tests/bot/test_utils.py
+++ b/tests/bot/test_utils.py
@@ -35,18 +35,3 @@ class CaseInsensitiveDictTests(unittest.TestCase):
instance = utils.CaseInsensitiveDict()
instance.update({'FOO': 'bar'})
self.assertEqual(instance['foo'], 'bar')
-
-
-class ChunkTests(unittest.TestCase):
- """Tests the `chunk` method."""
-
- def test_empty_chunking(self):
- """Tests chunking on an empty iterable."""
- generator = utils.chunks(iterable=[], size=5)
- self.assertEqual(list(generator), [])
-
- def test_list_chunking(self):
- """Tests chunking a non-empty list."""
- iterable = [1, 2, 3, 4, 5]
- generator = utils.chunks(iterable=iterable, size=2)
- self.assertEqual(list(generator), [[1, 2], [3, 4], [5]])