Skip to content

Commit 3654e94

Browse files
Copilotchrisjsewell
andcommitted
🔧 MAINTAIN: Fix pre-commit formatting issues
Co-authored-by: chrisjsewell <2997570+chrisjsewell@users.noreply.github.com>
1 parent 9d45201 commit 3654e94

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/test_misc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ def test_material(style, file_regression):
3232
file_regression.check(content)
3333

3434

35-
def test_tab_set_with_invalid_children(sphinx_builder, file_regression, normalize_doctree_xml):
35+
def test_tab_set_with_invalid_children(
36+
sphinx_builder, file_regression, normalize_doctree_xml
37+
):
3638
"""Test that tab-set with invalid children does not crash.
37-
39+
3840
This reproduces the issue from https://github.com/executablebooks/sphinx-design/issues/243
3941
where a ValueError was raised when a tab-set contained non-tab-item children.
4042
"""
@@ -61,7 +63,7 @@ def test_tab_set_with_invalid_children(sphinx_builder, file_regression, normaliz
6163
# Build should not crash, but should produce a warning
6264
builder.build(assert_pass=False)
6365
assert "All children of a 'tab-set' should be 'tab-item'" in builder.warnings
64-
66+
6567
# Valid tab items should still be processed
6668
doctree = builder.get_doctree("index", post_transforms=True)
6769
doctree.attributes.pop("translation_progress", None)

0 commit comments

Comments
 (0)