From 95ddb184a00e789262cd1c4d159cc61fb4892f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 2 Nov 2020 18:29:37 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20unit=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/util/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/octoprint/util/__init__.py b/src/octoprint/util/__init__.py index 4e57bfcd3..697118d22 100644 --- a/src/octoprint/util/__init__.py +++ b/src/octoprint/util/__init__.py @@ -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