Added a last check on doc meta

This commit is contained in:
Veronica K. B. Olsen
2020-09-10 22:43:43 +02:00
parent 61b9567e3a
commit b79e63c9d3
+7
View File
@@ -314,3 +314,10 @@ def testDocMeta(nwDummy, nwLipsum):
assert thePath[2] == "b3643d0f92e32"
assert theClass == nwItemClass.NOVEL
assert theLayout == nwItemLayout.SCENE
aDoc.docMeta = "too_short"
theMeta, thePath, theClass, theLayout = aDoc.getMeta()
assert theMeta == ""
assert thePath == []
assert theClass is None
assert theLayout is None