diff --git a/doc/source/conf.py b/doc/source/conf.py index b2add06a301..c983beef6a1 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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 --------------------------------------------------- diff --git a/lib/galaxy_test/base/api_asserts.py b/lib/galaxy_test/base/api_asserts.py index f5474dedad2..e6d425d3143 100644 --- a/lib/galaxy_test/base/api_asserts.py +++ b/lib/galaxy_test/base/api_asserts.py @@ -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