[core/theme] Make unittest (hopefully) run through
This commit is contained in:
parent
4716481087
commit
be20a36805
1 changed files with 2 additions and 1 deletions
|
@ -233,7 +233,8 @@ class Theme(object):
|
||||||
widget.set(key, (idx + 1) % len(value))
|
widget.set(key, (idx + 1) % len(value))
|
||||||
value = value[idx]
|
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)
|
value = widget.get_module().parameter("theme.{}".format(name), value)
|
||||||
|
|
||||||
if isinstance(value, list) or isinstance(value, dict):
|
if isinstance(value, list) or isinstance(value, dict):
|
||||||
|
|
Loading…
Reference in a new issue