File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ optional-dependencies.test = [
111111 " pytest-cov<8" ,
112112 " pytest-regressions<3" ,
113113 " sphinx-pytest<0.3" ,
114+ " verlib2" ,
114115]
115116urls.changelog = " https://github.com/panodata/sphinx-design-elements/blob/main/CHANGES.md"
116117urls.documentation = " https://sphinx-design-elements.readthedocs.io/"
Original file line number Diff line number Diff line change 1212from typing import Callable
1313
1414import pytest
15+ import sphinx
16+ from verlib2 import Version
1517
1618from tests .conftest import SphinxBuilder
1719
20+ if Version (sphinx .__version__ ) < Version ("7" ):
21+ raise pytest .skip ("Snippet tests require Sphinx >= 7" , allow_module_level = True )
22+
23+
1824SNIPPETS_PATH = Path (__file__ ).parent .parent / "docs" / "snippets"
1925SNIPPETS_GLOB_RST = list ((SNIPPETS_PATH / "rst" ).glob ("[!_]*" ))
2026SNIPPETS_GLOB_MYST = list ((SNIPPETS_PATH / "myst" ).glob ("[!_]*" ))
You can’t perform that action at this time.
0 commit comments