From f655835338fef746c5da2b481cd6794d6d84a3d2 Mon Sep 17 00:00:00 2001 From: Septatrix <24257556+Septatrix@users.noreply.github.com> Date: Sat, 14 Mar 2020 19:46:37 +0100 Subject: [PATCH] Fix tests --- .../test-theming/test_theme/test-theme/theme.conf | 2 +- tests/test_theming.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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')