mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
29 lines
835 B
Python
29 lines
835 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
"""
|
||
|
test_build_qthelp
|
||
|
~~~~~~~~~~~~~~~~~
|
||
|
|
||
|
Test the Qt Help builder and check its output. We don't need to
|
||
|
test the HTML itself; that's already handled by
|
||
|
:file:`test_build_html.py`.
|
||
|
|
||
|
:copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
|
||
|
:license: BSD, see LICENSE for details.
|
||
|
"""
|
||
|
|
||
|
import pytest
|
||
|
|
||
|
|
||
|
@pytest.mark.sphinx('qthelp', testroot='basic')
|
||
|
def test_qthelp_namespace(app, status, warning):
|
||
|
# default namespace
|
||
|
app.builder.build_all()
|
||
|
qhp = (app.outdir / 'Python.qhp').text()
|
||
|
assert '<namespace>org.sphinx.python</namespace>' in qhp
|
||
|
|
||
|
# give a namespace
|
||
|
app.config.qthelp_namespace = 'org.sphinx-doc.sphinx'
|
||
|
app.builder.build_all()
|
||
|
qhp = (app.outdir / 'Python.qhp').text()
|
||
|
assert '<namespace>org.sphinxdoc.sphinx</namespace>' in qhp
|