aboutsummaryrefslogtreecommitdiff
path: root/tests/test_collection.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-12-23 15:40:24 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-12-23 15:40:24 +0100
commitb1eb8b81f875f2b9f7b38239f91bd0c716f86eb3 (patch)
tree0ebd689308a3938b9148b8fd0e420cc3de532086 /tests/test_collection.py
parenta7102f127d64a13d555d2085db84ae349532b499 (diff)
Add a field with values to some test collections
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r--tests/test_collection.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_collection.py b/tests/test_collection.py
index 2308633..00389cd 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -381,9 +381,9 @@ class testComplexCollection(unittest.TestCase):
self.collection.settings['name'],
"Fully featured lesana collection",
)
- self.assertEqual(len(self.collection.settings['fields']), 14)
+ self.assertEqual(len(self.collection.settings['fields']), 15)
self.assertIsNotNone(self.collection.stemmer)
- self.assertEqual(len(self.collection.indexed_fields), 8)
+ self.assertEqual(len(self.collection.indexed_fields), 9)
def test_index(self):
indexed = self.collection.update_cache()
@@ -574,7 +574,7 @@ class testCollectionWithErrors(unittest.TestCase):
self.assertIsNotNone(self.collection.settings)
self.assertIsNotNone(self.collection.stemmer)
# Fields with no "index" entry are not indexed
- self.assertEqual(len(self.collection.settings['fields']), 8)
+ self.assertEqual(len(self.collection.settings['fields']), 9)
self.assertEqual(len(self.collection.indexed_fields), 3)
def test_init(self):
@@ -583,7 +583,7 @@ class testCollectionWithErrors(unittest.TestCase):
self.collection.settings['name'],
"Lesana collection with certain errors",
)
- self.assertEqual(len(self.collection.settings['fields']), 8)
+ self.assertEqual(len(self.collection.settings['fields']), 9)
self.assertIsNotNone(self.collection.stemmer)
self.assertEqual(len(self.collection.indexed_fields), 3)