mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
4ce6da9c96
commit
aecb008213
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user