Mercurial > hgrepos > Python > libs > ConfigMix
diff tests/test.py @ 195:28e6c1413947
Added support for TOML style configuration files
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 03 May 2019 21:51:09 +0200 |
| parents | d1103f0f9166 |
| children | 13527d70e9e3 |
line wrap: on
line diff
--- a/tests/test.py Fri May 03 20:21:12 2019 +0200 +++ b/tests/test.py Fri May 03 21:51:09 2019 +0200 @@ -16,6 +16,7 @@ import configmix.yaml import configmix.json import configmix.py +import configmix.toml from configmix.compat import u @@ -127,6 +128,10 @@ cfg = configmix.json.load(os.path.join(TESTDATADIR, "conf10.json")) self.__check_tree(cfg) + def test11_toml_tree(self): + cfg = configmix.toml.load(os.path.join(TESTDATADIR, "conf10.toml")) + self.__check_tree(cfg) + class _T02MixinLoadAndMerge:
