Skip to content

Commit

Permalink
Fix test failures following Alabaster's change in default sidebars
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jul 26, 2024
1 parent 08adbb3 commit 5f110f0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 12 additions & 1 deletion tests/test_builders/test_build_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,18 @@ def test_html_style(app):
not in result)


@pytest.mark.sphinx('html', testroot='basic')
@pytest.mark.sphinx(
'html',
testroot='basic',
# alabaster changed default sidebars in 1.0.0
confoverrides={'html_sidebars': {'**': [
'about.html',
'navigation.html',
'relations.html',
'searchbox.html',
'donate.html',
]}},
)
def test_html_sidebar(app):
ctx: dict[str, Any] = {}

Expand Down
6 changes: 5 additions & 1 deletion tests/test_intl/test_intl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,11 @@ def test_gettext_disallow_fuzzy_translations(app):
assert 'FEATURES' not in content


@pytest.mark.sphinx('html', testroot='basic', confoverrides={'language': 'de'})
@pytest.mark.sphinx(
'html',
testroot='basic',
confoverrides={'language': 'de', 'html_sidebars': {'**': ['searchbox.html']}},
)
def test_customize_system_message(make_app, app_params):
try:
# clear translators cache
Expand Down

0 comments on commit 5f110f0

Please sign in to comment.