From 2178154a17ce04c4d9cc21b7a9430e3a91dcb759 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sat, 1 Sep 2018 18:18:15 +0200 Subject: Don't die when indexing an empty list --- tests/test_collection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_collection.py') diff --git a/tests/test_collection.py b/tests/test_collection.py index 84f0a7a..2b1864a 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -241,9 +241,9 @@ class testComplexCollection(unittest.TestCase): self.collection.settings['name'], "Fully featured lesana collection" ) - self.assertEqual(len(self.collection.settings['fields']), 5) + self.assertEqual(len(self.collection.settings['fields']), 6) self.assertIsNotNone(self.collection.stemmer) - self.assertEqual(len(self.collection.indexed_fields), 4) + self.assertEqual(len(self.collection.indexed_fields), 5) def test_index(self): self.collection.update_cache() -- cgit v1.2.3