| 18 | reason='Sphinx is not installed' |
| 19 | ) |
| 20 | def 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 |