Mercurial > hgrepos > Python > libs > ConfigMix
diff tests/test.py @ 486:5a88c514d4e0
More unittests for interpolation
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Fri, 17 Dec 2021 15:56:53 +0100 |
| parents | 9fcdc42a0457 |
| children | a9a291927a4b |
line wrap: on
line diff
--- a/tests/test.py Fri Dec 17 15:56:33 2021 +0100 +++ b/tests/test.py Fri Dec 17 15:56:53 2021 +0100 @@ -225,6 +225,14 @@ u("postgresql+psycopg2://the_database_user_2:the-database-password-2@3rd-host:5432/my_database_catalog"), url) + def test02b_load_with_ini(self): + cfg = self._load( + os.path.join(TESTDATADIR, "conf20.yml"), + os.path.join(TESTDATADIR, "conf21.yml"), + os.path.join(TESTDATADIR, "conf22.ini")) + self.assertEqual(u("3rd-host3rd-host"), + cfg.getvar_s("db.locinfo.ro.hostname2")) + def test02_load_with_json(self): cfg = self._load( os.path.join(TESTDATADIR, "conf20.yml"),
