From 6d10d43e07a1ff6833bf6e2ccb58ead944cc1779 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sun, 28 Jul 2024 18:24:08 +0100 Subject: [PATCH] Fix test_htmlhelp; use the basic theme --- tests/roots/test-basic/conf.py | 1 + tests/test_htmlhelp.py | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/roots/test-basic/conf.py b/tests/roots/test-basic/conf.py index 4817a0c..f05c8a2 100644 --- a/tests/roots/test-basic/conf.py +++ b/tests/roots/test-basic/conf.py @@ -1,3 +1,4 @@ from __future__ import annotations project = 'Python' +html_theme = 'basic' diff --git a/tests/test_htmlhelp.py b/tests/test_htmlhelp.py index 191304a..8f32fc4 100644 --- a/tests/test_htmlhelp.py +++ b/tests/test_htmlhelp.py @@ -35,9 +35,12 @@ def test_build_htmlhelp(app: Sphinx) -> None: '"pythondoc.hhk","index.html","index.html",,,,,' '0x63520,220,0x10384e,[0,0,1024,768],,,,,,,0' in hhp) - files = ['genindex.html', 'index.html', '_static\\alabaster.css', '_static\\basic.css', - '_static\\custom.css', '_static\\file.png', '_static\\github-banner.svg', - '_static\\minus.png', '_static\\plus.png', '_static\\pygments.css'] + files = ( + 'genindex.html', 'index.html', + '_static\\basic.css', + '_static\\file.png', '_static\\minus.png', '_static\\plus.png', + '_static\\pygments.css', + ) assert '[FILES]\n' + '\n'.join(files) in hhp