[core/theme] Make unittest (hopefully) run through

This commit is contained in:
Tobias Witek 2018-01-17 19:29:11 +01:00
parent 4716481087
commit be20a36805

View file

@ -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):