diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-12 23:42:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 23:42:56 +0900 |
commit | 81a4248df90be6075aba8fa65dd1cd13b67fd3d4 (patch) | |
tree | 1b0819f144ea07a473ce2f6ced6a6c0af94a6d5b /tests/test_apidoc.py | |
parent | 3060456dbcf3af1c67a8c6a215efccd0c9c30bcc (diff) | |
parent | a2cddfeac990b0ab472b304f86a8986ec41c9019 (diff) | |
download | sphinx-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.py | 13 |
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 |