diff --git a/tests/roots/test-theming/test_theme/test-theme/theme.conf b/tests/roots/test-theming/test_theme/test-theme/theme.conf index 522adf1f8..2ad2c33e1 100644 --- a/tests/roots/test-theming/test_theme/test-theme/theme.conf +++ b/tests/roots/test-theming/test_theme/test-theme/theme.conf @@ -1,4 +1,4 @@ [theme] inherit = classic sidebars = globaltoc.html, searchbox.html -pygments_dark = monokai \ No newline at end of file +pygments_dark_style = monokai diff --git a/tests/test_theming.py b/tests/test_theming.py index ff5f57154..affaf5408 100644 --- a/tests/test_theming.py +++ b/tests/test_theming.py @@ -11,8 +11,8 @@ import os import alabaster -import pytest +import pytest from sphinx.theming import ThemeError @@ -119,7 +119,7 @@ def test_staticfiles(app, status, warning): @pytest.mark.sphinx(testroot='theming', confoverrides={'html_theme': 'test-theme'}) -def test_staticfiles(app, status, warning): +def test_dark_style(app, status, warning): style = app.builder.dark_highlighter.formatter_args.get('style') assert style.__name__ == 'MonokaiStyle' @@ -127,10 +127,10 @@ def test_staticfiles(app, status, warning): assert (app.outdir / '_static' / 'pygments_dark.css').exists() result = (app.outdir / 'index.html').read_text() - assert '' in result - assert ('') in result + assert '' in result + assert ('') in result @pytest.mark.sphinx(testroot='theming')