[tests/theme] Add tests for theme.py
This commit is contained in:
parent
64523119af
commit
6a14681a65
3 changed files with 132 additions and 5 deletions
|
@ -90,11 +90,6 @@ class Theme(object):
|
|||
"""Return the SBW"""
|
||||
return self._get(widget, "separator-block-width", None)
|
||||
|
||||
def loads(self, data):
|
||||
"""Initialize the theme from a JSON string"""
|
||||
theme = json.loads(data)
|
||||
self._init(theme)
|
||||
|
||||
def _load_icons(self, name):
|
||||
"""Load icons for a theme"""
|
||||
path = "{}/icons/".format(theme_path())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue