adding latest working

This commit is contained in:
2021-10-16 05:55:04 +01:00
parent e4ae3f0363
commit 4b51a040ce
2 changed files with 31 additions and 27 deletions

View File

@@ -4,6 +4,7 @@ from panaetius import Config, set_config
if __name__ == "__main__":
os.environ["PANAETIUS_TEST_PATH"] = "/usr/local"
os.environ["PANAETIUS_TEST_BOOL"] = "true"
print(os.environ.get("PANAETIUS_TEST_PATH"))
os.environ[
"PANAETIUS_TEST_TOML_POINTS"
@@ -14,19 +15,19 @@ if __name__ == "__main__":
os.environ["PANAETIUS_TEST_NOC_EMBEDDED_BOOL"] = "true"
# c = Config("panaetius_test")
c = Config("panaetius_test_noc")
c = Config("panaetius_test")
# set_config(c, key="path", default="some path")
# set_config(c, key="top", default="some top")
# set_config(c, key="logging.path", default="some logging path")
# set_config(c, key="nonexistent.item", default="some nonexistent item")
# set_config(c, key="nonexistent.item")
# set_config(c, key="toml.points", coerce=True)
# set_config(c, key="toml.points_config")
# set_config(c, key="float", default=2.0)
# set_config(c, key="float_str", default="2.0")
# set_config(c, key="bool", coerce=True)
# set_config(c, key="noexistbool", default=False)
set_config(c, key="path", default="some path")
set_config(c, key="top", default="some top")
set_config(c, key="logging.path", default="some logging path")
set_config(c, key="nonexistent.item", default="some nonexistent item")
set_config(c, key="nonexistent.item")
set_config(c, key="toml.points", coerce=True)
set_config(c, key="toml.points_config")
set_config(c, key="float", default=2.0)
set_config(c, key="float_str", default="2.0")
set_config(c, key="bool", coerce=True)
set_config(c, key="noexistbool", default=False)
# set_config(c, key="path")
# set_config(c, key="float", coerce=True)