We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9195105 commit 9aaaa41Copy full SHA for 9aaaa41
1 file changed
tests/test_renderers/test_fixtures_sphinx.py
@@ -13,6 +13,7 @@
13
import pytest
14
from docutils.core import Publisher
15
from pytest_param_files import ParamTestData
16
+from sphinx.transforms import SphinxTransformer
17
from sphinx_pytest.plugin import CreateDoctree
18
19
from myst_parser.mdit_to_docutils.sphinx_ import SphinxRenderer
@@ -31,6 +32,8 @@ def _apply_transforms(self):
31
32
33
if "[APPLY TRANSFORMS]" not in file_params.title:
34
monkeypatch.setattr(Publisher, "apply_transforms", _apply_transforms)
35
+ # in sphinx >= 9.0.0 SphinxTransformer is used
36
+ monkeypatch.setattr(SphinxTransformer, "apply_transforms", _apply_transforms)
37
38
result = sphinx_doctree(file_params.content, "index.md")
39
pformat = result.pformat("index")
0 commit comments