2022-02-19 21:05:56 -06:00
|
|
|
"""Test sphinx.ext.duration extension."""
|
2019-12-14 02:03:27 -06:00
|
|
|
|
2024-11-22 15:54:26 -06:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2019-12-14 02:03:27 -06:00
|
|
|
import re
|
2020-11-11 05:00:27 -06:00
|
|
|
|
2019-12-14 02:03:27 -06:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
2024-08-11 08:58:56 -05:00
|
|
|
@pytest.mark.sphinx(
|
|
|
|
'dummy',
|
|
|
|
testroot='basic',
|
|
|
|
confoverrides={'extensions': ['sphinx.ext.duration']},
|
|
|
|
)
|
2024-07-23 09:35:55 -05:00
|
|
|
def test_githubpages(app):
|
2019-12-14 02:03:27 -06:00
|
|
|
app.build()
|
|
|
|
|
2024-07-23 09:35:55 -05:00
|
|
|
assert 'slowest reading durations' in app.status.getvalue()
|
|
|
|
assert re.search('\\d+\\.\\d{3} index\n', app.status.getvalue())
|