From 8ec0cae371a0b392b81bf34d5ee849c233ebbf65 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 13 Dec 2016 17:36:40 +0100 Subject: Rename schema.yaml to settings.yaml --- tests/test_collection.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/test_collection.py') diff --git a/tests/test_collection.py b/tests/test_collection.py index b70c85f..be9a4e5 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -12,7 +12,7 @@ class testCollectionLoading(unittest.TestCase): def test_empty(self): self.collection = lesana.Collection('tests/data/empty') - self.assertEqual(self.collection.schema, {}) + self.assertEqual(self.collection.settings, {}) self.collection.update_cache() self.assertIsNotNone(self.collection.cache) @@ -20,9 +20,9 @@ class testCollectionLoading(unittest.TestCase): def test_simple(self): self.collection = lesana.Collection('tests/data/simple') - self.assertIsNotNone(self.collection.schema) - self.assertEqual(self.collection.schema['name'], "Simple lesana collection") - self.assertEqual(len(self.collection.schema['fields']), 3) + self.assertIsNotNone(self.collection.settings) + self.assertEqual(self.collection.settings['name'], "Simple lesana collection") + self.assertEqual(len(self.collection.settings['fields']), 3) self.collection.update_cache() self.assertIsNotNone(self.collection.cache) @@ -36,7 +36,7 @@ class testCollectionLoading(unittest.TestCase): self.assertIn("Invalid language", cm.output[0]) # The collection will default to english, but should still work. self.collection.update_cache() - self.assertIsNotNone(self.collection.schema) + self.assertIsNotNone(self.collection.settings) self.assertIsNotNone(self.collection.cache) self.assertIsNotNone(self.collection.stemmer) -- cgit v1.2.3