commit d766bbb86ac9869545fd3741d9e07ee841bd7d65
parent e4685076d0af68a80075f5c46bc11c33c0e31826
Author: nolash <dev@holbrook.no>
Date: Fri, 19 Feb 2021 21:44:15 +0100
Change all method to return list of keys
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/confini/config.py b/confini/config.py
@@ -172,7 +172,7 @@ class Config:
def all(self):
- return self.store
+ return list(self.store.keys())
def true(self, k):
diff --git a/test/test_basic.py b/test/test_basic.py
@@ -74,7 +74,7 @@ class TestBasic(unittest.TestCase):
inidir = os.path.join(self.wd, 'files')
c = Config(inidir)
a = c.all()
- self.assertEqual(a, c.store)
+ self.assertEqual(a, list(c.store.keys()))
if __name__ == '__main__':