From b79e63c9d3545191bd4ddfa804b25c074435c991 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Thu, 10 Sep 2020 22:43:43 +0200 Subject: [PATCH] Added a last check on doc meta --- tests/test_project.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_project.py b/tests/test_project.py index 2354fa08..834af196 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -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