diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-21 12:21:49 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-21 12:21:49 +0900 |
commit | d47f38e22db5da29c6b3ccce6b213cdc169f0ecd (patch) | |
tree | e6ec96b88a836372f8689efe61ef1baf7769777e /tests/test_ext_duration.py | |
parent | 26a17eade449bfec74aabc6adc9b056d52aa3cf0 (diff) | |
parent | acdcf81599d49de751811269cd428850605224a1 (diff) | |
download | sphinx-git-d47f38e22db5da29c6b3ccce6b213cdc169f0ecd.tar.gz |
Merge branch '2.0'
Diffstat (limited to 'tests/test_ext_duration.py')
-rw-r--r-- | tests/test_ext_duration.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test_ext_duration.py b/tests/test_ext_duration.py new file mode 100644 index 000000000..65ea1eef7 --- /dev/null +++ b/tests/test_ext_duration.py @@ -0,0 +1,21 @@ +""" + test_ext_duration + ~~~~~~~~~~~~~~~~~ + + Test sphinx.ext.duration extension. + + :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. + :license: BSD, see LICENSE for details. +""" + +import re +import pytest + + +@pytest.mark.sphinx('dummy', testroot='basic', + confoverrides={'extensions': ['sphinx.ext.duration']}) +def test_githubpages(app, status, warning): + app.build() + + assert 'slowest reading durations' in status.getvalue() + assert re.search('\\d+\\.\\d{3} index\n', status.getvalue()) |