Skip to content

Commit 5f110f0

Browse files
committed
Fix test failures following Alabaster's change in default sidebars
1 parent 08adbb3 commit 5f110f0

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

tests/test_builders/test_build_html.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,18 @@ def test_html_style(app):
235235
not in result)
236236

237237

238-
@pytest.mark.sphinx('html', testroot='basic')
238+
@pytest.mark.sphinx(
239+
'html',
240+
testroot='basic',
241+
# alabaster changed default sidebars in 1.0.0
242+
confoverrides={'html_sidebars': {'**': [
243+
'about.html',
244+
'navigation.html',
245+
'relations.html',
246+
'searchbox.html',
247+
'donate.html',
248+
]}},
249+
)
239250
def test_html_sidebar(app):
240251
ctx: dict[str, Any] = {}
241252

tests/test_intl/test_intl.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,11 @@ def test_gettext_disallow_fuzzy_translations(app):
16851685
assert 'FEATURES' not in content
16861686

16871687

1688-
@pytest.mark.sphinx('html', testroot='basic', confoverrides={'language': 'de'})
1688+
@pytest.mark.sphinx(
1689+
'html',
1690+
testroot='basic',
1691+
confoverrides={'language': 'de', 'html_sidebars': {'**': ['searchbox.html']}},
1692+
)
16891693
def test_customize_system_message(make_app, app_params):
16901694
try:
16911695
# clear translators cache

0 commit comments

Comments
 (0)