💚 Fix unit tests

This commit is contained in:
Gina Häußge committed 2020-11-02 18:29:37 +01:00
1 parent eec43e31c2
commit 95ddb184a0
1 file changed
+2 -4
+2 -4
View File
@@ -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