Mercurial > hgrepos > Python > libs > ConfigMix
changeset 628:c56971e85496
FIX: Arguments when calling .getvarl() and .getvarl_s()
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 14 Jan 2022 11:57:06 +0100 |
| parents | e3a23e9242a0 |
| children | 2426fa273a29 |
| files | tests/test.py |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test.py Thu Jan 13 22:27:20 2022 +0100 +++ b/tests/test.py Fri Jan 14 11:57:06 2022 +0100 @@ -469,14 +469,14 @@ # The default must be the original and not a copy dflt = {"foo2": "bar2"} cfg = self._load(os.path.join(TESTDATADIR, "conf20.yml")) - self.assertTrue(cfg.getvarl((u"non", u"existing", u"key"), + self.assertTrue(cfg.getvarl(u"non", u"existing", u"key", default=dflt) is dflt) def test15c_getvarl_s_with_original_default(self): # The default must be the original and not a copy dflt = {"foo3": "bar3"} cfg = self._load(os.path.join(TESTDATADIR, "conf20.yml")) - self.assertTrue(cfg.getvarl_s((u"non", u"existing", u"key4"), + self.assertTrue(cfg.getvarl_s(u"non", u"existing", u"key4", default=dflt) is dflt) def test16_getintvar_s_with_default(self):
