aboutsummaryrefslogtreecommitdiff
path: root/tests/test_collection.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2016-12-19 22:19:03 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2016-12-19 22:19:03 +0100
commit6e6275231e6e66f9024d10c5395479e86939eb20 (patch)
tree84b9bf7ddb85f276d8b8596269bd9b5e9e0b3c54 /tests/test_collection.py
parentc22d66b350db2e213cc916fae4f6207440a9be4f (diff)
Only index fields that should be indexed for free / field search
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 1bacfd6..82722b1 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -59,14 +59,14 @@ class testEntries(unittest.TestCase):
data = ruamel.yaml.load(fp)
entry = lesana.Entry(self.collection, data=data, fname=fname)
self.assertEqual(entry.idterm, 'Q'+data['uid'])
- self.assertEqual(len(entry.indexed_fields), 4)
+ self.assertEqual(len(entry.indexed_fields), 2)
fname = '11189ee47ddf4796b718a483b379f976.yaml'
uid = '11189ee47ddf4796b718a483b379f976'
with open(os.path.join(self.basepath, fname)) as fp:
data = ruamel.yaml.load(fp)
entry = lesana.Entry(self.collection, data=data, fname=fname)
self.assertEqual(entry.idterm, 'Q'+uid)
- self.assertEqual(len(entry.indexed_fields), 3)
+ self.assertEqual(len(entry.indexed_fields), 2)
def test_write_new(self):
new_entry = lesana.Entry(self.collection)