Drop old methods

This commit is contained in:
Takeshi KOMIYA
2017-04-20 23:38:48 +09:00
parent ca7bb5140e
commit e24779b1cc
4 changed files with 11 additions and 26 deletions

View File

@@ -35,16 +35,16 @@ def test_theme_api(app, status, warning):
assert theme.name == 'ziptheme'
themedir = theme.themedir
assert theme.base.name == 'basic'
assert len(theme.get_dirchain()) == 2
assert len(theme.get_theme_dirs()) == 2
# direct setting
assert theme.get_confstr('theme', 'stylesheet') == 'custom.css'
assert theme.get_config('theme', 'stylesheet') == 'custom.css'
# inherited setting
assert theme.get_confstr('options', 'nosidebar') == 'false'
assert theme.get_config('options', 'nosidebar') == 'false'
# nonexisting setting
assert theme.get_confstr('theme', 'foobar', 'def') == 'def'
assert theme.get_config('theme', 'foobar', 'def') == 'def'
with pytest.raises(ThemeError):
theme.get_confstr('theme', 'foobar')
theme.get_config('theme', 'foobar')
# options API
with pytest.raises(ThemeError):