Add options argument to Sphinx.add_latex_package()

This commit is contained in:
tk0miya committed 2014-09-28 21:10:26 +09:00
1 parent 6358d62718
commit 16529c5604
4 files changed
+17 -4

No files matched your search

+2
View File
@@ -96,5 +96,7 @@ def test_latex(app, status, warning):
@with_app(buildername='latex')
def test_latex_add_latex_package(app, status, warning):
app.add_latex_package('foo')
app.add_latex_package('bar', 'baz')
app.builder.build_all()
assert '\\usepackage{foo}' in (app.outdir / 'SphinxTests.tex').text()
assert '\\usepackage[baz]{bar}' in (app.outdir / 'SphinxTests.tex').text()