mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Hook requests up to intersphinx.
This commit is contained in:
+4
-1
@@ -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 ---------------------------------------------------
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user