From 864048b9dd320f9ab5fd4b2312c89df0986bb636 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Mon, 7 Dec 2020 12:01:32 +0100 Subject: Add --reset to delete the xapian cache before indexing --- tests/test_collection.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/test_collection.py b/tests/test_collection.py index 8d4cf88..6a65ff3 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -219,6 +219,9 @@ class testSimpleCollection(unittest.TestCase): self.assertEqual(len(cm.output), 1) self.assertIn("non_existing_file", cm.output[0]) + def test_index_reset(self): + self.collection.update_cache(reset=True) + def test_get_entry_missing_eid(self): entry = self.collection.entry_from_eid('this is not an eid') self.assertIsNone(entry) -- cgit v1.2.3