diff options
Diffstat (limited to 'tests/unit/config/test_configtypes.py')
-rw-r--r-- | tests/unit/config/test_configtypes.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/unit/config/test_configtypes.py b/tests/unit/config/test_configtypes.py index 930234425..533932981 100644 --- a/tests/unit/config/test_configtypes.py +++ b/tests/unit/config/test_configtypes.py @@ -537,8 +537,11 @@ class FromObjType(configtypes.BaseType): """Config type to test from_obj for List/Dict.""" - def from_obj(self, obj): - return int(obj) + def from_obj(self, value): + return int(value) + + def to_py(self, value): + return value class TestList: |