sphinx/tests/test_ext_ifconfig.py

12 lines
307 B
Python
Raw Normal View History

2022-02-19 21:05:56 -06:00
"""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')
2016-07-13 19:16:51 -05:00
assert 'spam' in result
assert 'ham' not in result