summaryrefslogtreecommitdiff
path: root/tests/test_apidoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_apidoc.py')
-rw-r--r--tests/test_apidoc.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_apidoc.py b/tests/test_apidoc.py
index d44868aeb..7e6c4fd0a 100644
--- a/tests/test_apidoc.py
+++ b/tests/test_apidoc.py
@@ -145,3 +145,16 @@ def test_multibyte_parameters(make_app, apidoc):
app.build()
print(app._status.getvalue())
print(app._warning.getvalue())
+
+
+@pytest.mark.apidoc(
+ coderoot=(rootdir / 'root'),
+ options=['--ext-mathjax'],
+)
+def test_extension_parsed(make_app, apidoc):
+ outdir = apidoc.outdir
+ assert (outdir / 'conf.py').isfile()
+
+ with open(outdir / 'conf.py') as f:
+ rst = f.read()
+ assert "sphinx.ext.mathjax" in rst