Updated tests

This commit is contained in:
Veronica K. B. Olsen
2020-10-24 18:56:01 +02:00
parent a9b264227a
commit 538009eff6
37 changed files with 120 additions and 67 deletions
+3 -3
View File
@@ -230,10 +230,10 @@ class NWDoc():
%%~ that may contain meta data.
"""
if metaLine.startswith("%%~name:"):
self._docMeta["name"] = metaLine[9:].strip()
self._docMeta["name"] = metaLine[8:].strip()
elif metaLine.startswith("%%~path:"):
metaVal = metaLine[9:].strip()
metaVal = metaLine[8:].strip()
metaBits = metaVal.split("/")
if len(metaBits) == 2:
if isHandle(metaBits[0]):
@@ -242,7 +242,7 @@ class NWDoc():
self._docMeta["handle"] = metaBits[1]
elif metaLine.startswith("%%~kind:"):
metaVal = metaLine[9:].strip()
metaVal = metaLine[8:].strip()
metaBits = metaVal.split("/")
if len(metaBits) == 2:
if metaBits[0] in nwItemClass.__members__: