2015-03-02 22:43:14 +09:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
"""
|
|
|
|
|
test_ext_ifconfig
|
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
Test sphinx.ext.ifconfig extension.
|
|
|
|
|
|
2017-03-22 20:21:12 +09:00
|
|
|
:copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
|
2015-03-02 22:43:14 +09:00
|
|
|
:license: BSD, see LICENSE for details.
|
|
|
|
|
"""
|
|
|
|
|
|
2017-01-06 01:14:47 +09:00
|
|
|
import pytest
|
2015-03-02 22:43:14 +09:00
|
|
|
|
|
|
|
|
|
2017-01-06 01:14:47 +09:00
|
|
|
@pytest.mark.sphinx('text', testroot='ext-ifconfig')
|
2015-03-02 22:43:14 +09:00
|
|
|
def test_ifconfig(app, status, warning):
|
|
|
|
|
app.builder.build_all()
|
2016-07-14 09:16:51 +09:00
|
|
|
result = (app.outdir / 'index.txt').text()
|
|
|
|
|
assert 'spam' in result
|
|
|
|
|
assert 'ham' not in result
|