summaryrefslogtreecommitdiff
path: root/tests/test_collection.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2018-09-01 18:18:15 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2018-09-01 18:18:15 +0200
commit2178154a17ce04c4d9cc21b7a9430e3a91dcb759 (patch)
treeca63774131483827772013bd5dbe5be159f4e037 /tests/test_collection.py
parent61f0b236013c3b708ecfe6214b53a98fd342fac4 (diff)
Don't die when indexing an empty list
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r--tests/test_collection.py4
1 files changed, 2 insertions, 2 deletions
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()