From be20a36805368ecc22cf00f0966b61d9ce51e258 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Wed, 17 Jan 2018 19:29:11 +0100 Subject: [PATCH] [core/theme] Make unittest (hopefully) run through --- bumblebee/theme.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bumblebee/theme.py b/bumblebee/theme.py index 7fa8f65..16eb49a 100644 --- a/bumblebee/theme.py +++ b/bumblebee/theme.py @@ -233,7 +233,8 @@ class Theme(object): widget.set(key, (idx + 1) % len(value)) value = value[idx] - if widget.get_module() is not None: + mod = widget.get_module() + if mod and not mod.parameter("is-unittest"): value = widget.get_module().parameter("theme.{}".format(name), value) if isinstance(value, list) or isinstance(value, dict):