MCPcopy
hub / github.com/celery/celery / test_sphinx

Function test_sphinx

t/unit/contrib/test_sphinx.py:20–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 reason='Sphinx is not installed'
19)
20def test_sphinx():
21 app = TestApp(srcdir=SRCDIR, confdir=SRCDIR)
22 app.build()
23 contents = open(os.path.join(app.outdir, 'contents.html'),
24 encoding='utf-8').read()
25 assert 'This is a sample Task' in contents
26 assert 'This is a sample Shared Task' in contents
27 assert (
28 'This task is in a different module!'
29 not in contents
30 )
31 # Verify :task: cross-reference role resolves to a link
32 assert 'foo.bar' in contents
33 assert 'Cross-reference test' in contents

Callers

nothing calls this directly

Calls 3

TestAppFunction · 0.85
openFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…