summaryrefslogtreecommitdiff
path: root/tests/test_ext_duration.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-21 12:21:49 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-21 12:21:49 +0900
commitd47f38e22db5da29c6b3ccce6b213cdc169f0ecd (patch)
treee6ec96b88a836372f8689efe61ef1baf7769777e /tests/test_ext_duration.py
parent26a17eade449bfec74aabc6adc9b056d52aa3cf0 (diff)
parentacdcf81599d49de751811269cd428850605224a1 (diff)
downloadsphinx-git-d47f38e22db5da29c6b3ccce6b213cdc169f0ecd.tar.gz
Merge branch '2.0'
Diffstat (limited to 'tests/test_ext_duration.py')
-rw-r--r--tests/test_ext_duration.py21
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())