aboutsummaryrefslogtreecommitdiff
path: root/tests/test_collection.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-08-11 13:04:53 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-08-11 13:10:09 +0200
commitb4c7f0823ee40a0b1e65ae84dea018ffad66a6f2 (patch)
tree8a1916a13cdc21548b7bd9ab46be38ee63338007 /tests/test_collection.py
parent84784fd0e2e0f063e2b34b95cf1c5d0b21f8ccd7 (diff)
Provide a short_id that can be used by templates
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r--tests/test_collection.py1
1 files changed, 1 insertions, 0 deletions
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)