💚 Fix unit tests
This commit is contained in:
1 parent
eec43e31c2
commit
95ddb184a0
1 file changed
+2
-4
@@ -961,10 +961,8 @@ def dict_flatten(dictionary, prefix="", separator="."):
|
||||
|
||||
Example::
|
||||
>>> data = {'a': {'a1': 'a1', 'a2': 'a2'}, 'b': 'b'}
|
||||
>>> expected = {'a.a1': 'a1', 'a.a2': 'a2', 'b': 'b'}
|
||||
>>> actual = dict_flatten(data)
|
||||
>>> expected == data
|
||||
True
|
||||
>>> dict_flatten(data)
|
||||
dict(a.a1='a1', a.a2='a2', b='b')
|
||||
|
||||
Args:
|
||||
dictionary: the dictionary to flatten
|
||||
|
||||
Reference in new issue
Block a user