mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-08-17 16:34:48 -05:00
Optimize tests: test_ifconfig
This commit is contained in:
@@ -12,6 +12,9 @@
|
|||||||
from util import with_app
|
from util import with_app
|
||||||
|
|
||||||
|
|
||||||
@with_app(testroot='ext-ifconfig')
|
@with_app(buildername='text', testroot='ext-ifconfig')
|
||||||
def test_ifconfig(app, status, warning):
|
def test_ifconfig(app, status, warning):
|
||||||
app.builder.build_all()
|
app.builder.build_all()
|
||||||
|
result = (app.outdir / 'index.txt').text()
|
||||||
|
assert 'spam' in result
|
||||||
|
assert 'ham' not in result
|
||||||
|
|||||||
Reference in New Issue
Block a user