Add home path getter to config

This commit is contained in:
Veronica Berglyd Olsen committed 2024-04-13 00:12:43 +02:00
1 parent 95d91562ec
commit 4b5383f1c7
2 files changed
+7

No files matched your search

+3
View File
@@ -200,6 +200,9 @@ def testBaseConfig_Methods(fncPath):
tstConf = Config()
tstConf.initConfig(confPath=fncPath, dataPath=fncPath)
# Home Path
assert tstConf.homePath() == Path.home().absolute()
# Data Path
assert tstConf.dataPath() == fncPath
assert tstConf.dataPath("stuff") == fncPath / "stuff"