Skip to content

Commit 2854159

Browse files
committed
fixing test
1 parent 0d7addb commit 2854159

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"twitter_url": "https://twitter.com/pandas_dev",
7171
"use_edit_page_button": True,
7272
"show_toc_level": 1,
73-
"navbar_align_with_content": True, # For testing that the navbar items snap to left properly
73+
# "navbar_align_with_content": False, # For testing that the navbar items snap to left properly
7474
}
7575

7676
html_context = {

tests/test_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_navbar_align_with_content(sphinx_build):
121121
index_html = sphinx_build.get("index.html")
122122
assert "col-lg-9" in index_html.select("div#navbar-menu")[0].attrs["class"]
123123

124-
sphinx_build.build(["-D", "html_theme_options.navbar_align_with_content=True"])
124+
sphinx_build.build(["-D", "html_theme_options.navbar_align_with_content=False"])
125125
index_html = sphinx_build.get("index.html")
126-
assert "col-11" in index_html.select("div#navbar-menu")[0].attrs["class"]
126+
assert "col-lg-9" not in index_html.select("div#navbar-menu")[0].attrs["class"]
127127
sphinx_build.clean()

0 commit comments

Comments
 (0)