diff options
author | Stephen Finucane <stephen@that.guru> | 2017-02-27 14:57:34 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-02-28 17:30:28 +0000 |
commit | 2afa0b6627f7e5afb188d5a60c8c4767f6250774 (patch) | |
tree | 36187057c569ce7f9db7baab62ad0e4474bda24b /tests/test_setup_command.py | |
parent | 493c65a9ee75589e3d77f0b97a4a4d7a764f0aeb (diff) | |
download | sphinx-git-2afa0b6627f7e5afb188d5a60c8c4767f6250774.tar.gz |
setuptools: Support multiple builders
At present, the 'builder' option for the setuptools integration only
supports a single output format, typically HTML, like so:
[build_sphinx]
builder = man
There is value in being able to specify multiple format, like so:
[build_sphinx]
builder = html man
Make this possible.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'tests/test_setup_command.py')
-rw-r--r-- | tests/test_setup_command.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test_setup_command.py b/tests/test_setup_command.py index 7554bef5d..97943075f 100644 --- a/tests/test_setup_command.py +++ b/tests/test_setup_command.py @@ -64,6 +64,24 @@ def test_build_sphinx(setup_command): assert proc.returncode == 0 +@pytest.mark.setup_command('-b', 'html,man') +def test_build_sphinx_multiple_builders(setup_command): + proc = setup_command.proc + out, err = proc.communicate() + print(out) + print(err) + assert proc.returncode == 0 + + +@pytest.mark.setup_command('-b', 'html,bar') +def test_build_sphinx_multiple_invalid_builders(setup_command): + proc = setup_command.proc + out, err = proc.communicate() + print(out) + print(err) + assert proc.returncode == 1 + + @pytest.fixture def nonascii_srcdir(request, setup_command): mb_name = u'\u65e5\u672c\u8a9e' |