Changed test case "test_theme_api" to check, if a not needed html_theme_option is not part of the returned, final configuration of theme.get_options().

PR #3893
This commit is contained in:
daniel 2017-06-26 09:17:08 +02:00
parent 4ce6da9c96
commit aecb008213

View File

@ -47,8 +47,10 @@ def test_theme_api(app, status, warning):
theme.get_config('theme', 'foobar')
# options API
with pytest.raises(ThemeError):
theme.get_options({'nonexisting': 'foo'})
options = theme.get_options({'nonexisting': 'foo'})
assert 'nonexisting' not in options.keys()
options = theme.get_options(cfg.html_theme_options)
assert options['testopt'] == 'foo'
assert options['nosidebar'] == 'false'