From b4c7f0823ee40a0b1e65ae84dea018ffad66a6f2 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 11 Aug 2019 13:04:53 +0200 Subject: Provide a short_id that can be used by templates --- tests/test_collection.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/test_collection.py b/tests/test_collection.py index cc28a27..66f034a 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -169,6 +169,7 @@ class testEntries(unittest.TestCase): data = ruamel.yaml.safe_load(fp) entry = lesana.Entry(self.collection, data=data, fname=fname) self.assertEqual(entry.idterm, 'Q'+uid) + self.assertEqual(entry.short_id, uid[:8]) def test_write_new(self): new_entry = lesana.Entry(self.collection) -- cgit v1.2.3