Hook requests up to intersphinx.

This commit is contained in:
John Chilton
2021-01-12 09:29:53 -05:00
parent 08110e2281
commit 61188ca27b
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -140,7 +140,10 @@ pygments_style = 'sphinx'
#modindex_common_prefix = []
# Intersphinx mapping to Python documentation
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'requests': ("https://requests.readthedocs.io/en/master/", None),
}
# -- Options for HTML output ---------------------------------------------------
+2
View File
@@ -20,6 +20,8 @@ def assert_status_code_is_ok(response: Response):
The easier alternative ``response.raise_for_status()`` might be
perferable generally.
.. seealso:: :py:meth:`requests.Response.raise_for_status()`
"""
response_status_code = response.status_code
is_two_hundred_status_code = response_status_code >= 200 and response_status_code <= 300