mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
diet test-root: Move ziptheme to test-theming
This commit is contained in:
parent
49e1fbe0df
commit
60f3968ef7
@ -17,6 +17,7 @@ from sphinx.theming import ThemeError
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.sphinx(
|
@pytest.mark.sphinx(
|
||||||
|
testroot='theming',
|
||||||
confoverrides={'html_theme': 'ziptheme',
|
confoverrides={'html_theme': 'ziptheme',
|
||||||
'html_theme_options.testopt': 'foo'})
|
'html_theme_options.testopt': 'foo'})
|
||||||
def test_theme_api(app, status, warning):
|
def test_theme_api(app, status, warning):
|
||||||
@ -25,9 +26,9 @@ def test_theme_api(app, status, warning):
|
|||||||
# test Theme class API
|
# test Theme class API
|
||||||
assert set(app.html_themes.keys()) == \
|
assert set(app.html_themes.keys()) == \
|
||||||
set(['basic', 'default', 'scrolls', 'agogo', 'sphinxdoc', 'haiku',
|
set(['basic', 'default', 'scrolls', 'agogo', 'sphinxdoc', 'haiku',
|
||||||
'traditional', 'testtheme', 'ziptheme', 'epub', 'nature',
|
'traditional', 'test-theme', 'ziptheme', 'epub', 'nature',
|
||||||
'pyramid', 'bizstyle', 'classic', 'nonav'])
|
'pyramid', 'bizstyle', 'classic', 'nonav', 'parent', 'child'])
|
||||||
assert app.html_themes['testtheme'] == app.srcdir / 'testtheme'
|
assert app.html_themes['test-theme'] == app.srcdir / 'test_theme/test-theme'
|
||||||
assert app.html_themes['ziptheme'] == app.srcdir / 'ziptheme.zip'
|
assert app.html_themes['ziptheme'] == app.srcdir / 'ziptheme.zip'
|
||||||
|
|
||||||
# test Theme instance API
|
# test Theme instance API
|
||||||
|
Loading…
Reference in New Issue
Block a user