tests.sphinx.test_sphinx_tabs moduleΒΆ

Tests for the vertical layout of sphinx-design tab-sets.

tests.sphinx.test_sphinx_tabs.test_vertical_tabs_stylesheet_is_linked(sphinx_app_myst)[source]ΒΆ

Every page links the stylesheet, which the build writes.

Return type:

None

tests.sphinx.test_sphinx_tabs.test_vertical_tabs_rules_stay_on_their_tab_set()[source]ΒΆ

Every rule targets a tab-set marked with the class, or a direct child of it.

Other tab-sets keep their layout, and so does a tab-set nested inside a pane of a vertical one.

Return type:

None

tests.sphinx.test_sphinx_tabs.test_vertical_tabs_class_is_deprecated(sphinx_app_myst, classes, warns)[source]ΒΆ

A tab-set marked with the class warns about its removal, other nodes do not.

A docutils container takes the classes that sphinx-design gives the node of a tab-set, so the test needs no sphinx-design.

Return type:

None