diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2020-12-07 12:01:32 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2020-12-07 12:01:32 +0100 |
commit | 864048b9dd320f9ab5fd4b2312c89df0986bb636 (patch) | |
tree | 72559e69eff19f88b0464eff725b7a64d777fef9 /tests/test_collection.py | |
parent | d4ee3a366faed3ba56bb05e45b0883495a61d719 (diff) |
Add --reset to delete the xapian cache before indexing
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r-- | tests/test_collection.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |