blob: 942f2c5e44cf0f6fe8c98f56e858a8cb392f8125 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
"""Test sphinx.ext.ifconfig extension."""
import pytest
@pytest.mark.sphinx('text', testroot='ext-ifconfig')
def test_ifconfig(app, status, warning):
app.builder.build_all()
result = (app.outdir / 'index.txt').read_text(encoding='utf8')
assert 'spam' in result
assert 'ham' not in result
|