aboutsummaryrefslogtreecommitdiff
path: root/tests/test_collection.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2020-02-09 17:43:29 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2020-02-09 17:43:29 +0100
commita96b3e1f7acac3cc7bd0ae74be411e97fc27912c (patch)
treeb3fe9871463c4b74eb456260bbe415ef06efafec /tests/test_collection.py
parent00148a2b195b2ca35054346825efabac81629332 (diff)
Simple fixes to improve test coverage
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 b5266d9..798e561 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -28,8 +28,8 @@ class testCollection(unittest.TestCase):
self.collection.settings['name'],
"Simple lesana collection"
)
- self.assertEqual(len(self.collection.settings['fields']), 5)
- self.assertEqual(len(self.collection.indexed_fields), 2)
+ self.assertEqual(len(self.collection.settings['fields']), 7)
+ self.assertEqual(len(self.collection.indexed_fields), 3)
self.collection.update_cache()
self.assertIsNotNone(self.collection.stemmer)
@@ -54,7 +54,7 @@ class testCollection(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']), 4)
+ self.assertEqual(len(self.collection.settings['fields']), 6)
self.assertEqual(len(self.collection.indexed_fields), 1)
def test_load_safe(self):
@@ -326,7 +326,7 @@ class testCollectionWithErrors(unittest.TestCase):
self.collection.settings['name'],
"Lesana collection with certain errors"
)
- self.assertEqual(len(self.collection.settings['fields']), 4)
+ self.assertEqual(len(self.collection.settings['fields']), 6)
self.assertIsNotNone(self.collection.stemmer)
self.assertEqual(len(self.collection.indexed_fields), 1)