Batch boundary falls exactly between files.
(self)
| 1092 | self.assertEqual(len(batches), 3) |
| 1093 | |
| 1094 | def test_exact_boundary(self): |
| 1095 | """Batch boundary falls exactly between files.""" |
| 1096 | items = self._make_items([2, 2]) |
| 1097 | batches = group_work_items(items, batch_size=2) |
| 1098 | self.assertEqual(len(batches), 2) |
| 1099 | self.assertEqual(batches[0], [items[0]]) |
| 1100 | self.assertEqual(batches[1], [items[1]]) |
| 1101 | |
| 1102 | |
| 1103 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected