summaryrefslogtreecommitdiff
path: root/tests/test_apidoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-12 23:42:56 +0900
committerGitHub <noreply@github.com>2017-01-12 23:42:56 +0900
commit81a4248df90be6075aba8fa65dd1cd13b67fd3d4 (patch)
tree1b0819f144ea07a473ce2f6ced6a6c0af94a6d5b /tests/test_apidoc.py
parent3060456dbcf3af1c67a8c6a215efccd0c9c30bcc (diff)
parenta2cddfeac990b0ab472b304f86a8986ec41c9019 (diff)
downloadsphinx-git-81a4248df90be6075aba8fa65dd1cd13b67fd3d4.tar.gz
Merge pull request #3323 from gbaier/apidoc_extensions
apidoc takes extension options
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