Update Lipsum test project

This commit is contained in:
Veronica Berglyd Olsen
2024-01-30 22:10:25 +01:00
parent ca188fee08
commit e1531009d3
17 changed files with 145 additions and 124 deletions
+4
View File
@@ -669,6 +669,7 @@ def testBaseCommon_NWConfigParser(fncPath):
"list1 = a, b, c\n"
"list2 = 17, 18, 19\n"
"float1 = 4.2\n"
f"path1 = {fncPath}\n"
))
cfgParser = NWConfigParser()
@@ -711,6 +712,9 @@ def testBaseCommon_NWConfigParser(fncPath):
assert cfgParser.rdFlt("nope", "intopt1", 13.0) == 13.0
assert cfgParser.rdFlt("main", "blabla", 13.0) == 13.0
# Read Path
assert cfgParser.rdPath("main", "path1", Path.home()) == fncPath
# Read String List
assert cfgParser.rdStrList("main", "list1", []) == []
assert cfgParser.rdStrList("main", "list1", ["x"]) == ["a"]