2015-03-02 07:43:14 -06:00
|
|
|
"""
|
|
|
|
test_ext_ifconfig
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Test sphinx.ext.ifconfig extension.
|
|
|
|
|
2019-12-31 23:27:43 -06:00
|
|
|
:copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
|
2015-03-02 07:43:14 -06:00
|
|
|
:license: BSD, see LICENSE for details.
|
|
|
|
"""
|
|
|
|
|
2017-01-05 10:14:47 -06:00
|
|
|
import pytest
|
2015-03-02 07:43:14 -06:00
|
|
|
|
|
|
|
|
2017-01-05 10:14:47 -06:00
|
|
|
@pytest.mark.sphinx('text', testroot='ext-ifconfig')
|
2015-03-02 07:43:14 -06:00
|
|
|
def test_ifconfig(app, status, warning):
|
|
|
|
app.builder.build_all()
|
2020-01-31 20:58:51 -06:00
|
|
|
result = (app.outdir / 'index.txt').read_text()
|
2016-07-13 19:16:51 -05:00
|
|
|
assert 'spam' in result
|
|
|
|
assert 'ham' not in result
|