diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-01-02 17:50:58 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-01-02 17:50:58 +0100 |
commit | 3945aab1bc696a0a410d95ab65fddec70e9ee2f1 (patch) | |
tree | fa54a30f980523fed61edc9045bd2ee0669a0691 /tests/test_collection.py | |
parent | 9a7168c0262da9a2b4a6338a5179ce644a84fb15 (diff) |
When creating a new empty entry, write the fields in order
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r-- | tests/test_collection.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_collection.py b/tests/test_collection.py index 45c1efc..e732f9c 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -27,7 +27,7 @@ class testCollectionLoading(unittest.TestCase): self.collection.settings['name'], "Simple lesana collection" ) - self.assertEqual(len(self.collection.settings['fields']), 4) + self.assertEqual(len(self.collection.settings['fields']), 5) self.assertEqual(len(self.collection.indexed_fields), 2) self.collection.update_cache() @@ -125,13 +125,14 @@ class testComplexCollection(unittest.TestCase): self.collection.settings['name'], "Fully featured lesana collection" ) - self.assertEqual(len(self.collection.settings['fields']), 3) + self.assertEqual(len(self.collection.settings['fields']), 4) self.assertIsNotNone(self.collection.stemmer) self.assertEqual(len(self.collection.indexed_fields), 2) def test_index(self): self.collection.update_cache() + class testCollectionCreation(unittest.TestCase): def test_init(self): tmpdir = tempfile.mkdtemp() |