File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
docs/src/developers_guide Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ Conversion Checklist
40
40
...
41
41
42
42
#. Check for references to ``@tests ``. These should be changed to ``@_shared_utils ``.
43
- #. Check for references to ``with mock.patch("...") ``. These should be replaced with
44
- ``mocker.patch("...") ``. ``mocker `` is a fixture, and can be passed into functions.
43
+ #. Check for references to ``with mock.patch("...") ``. These should be replaced with either
44
+ ``with mocker.patch("...") `` or ``mocker.patch("..."). Note that ``mocker `` is a fixture,
45
+ and should be passed into relevant functions as a parameter.
45
46
#. Check for ``np.testing.assert... ``. This can usually be swapped for
46
47
``_shared_utils.assert... ``.
47
48
#. Check for references to ``super() ``. Most test classes used to inherit from
@@ -73,4 +74,6 @@ Common Translations
73
74
- ``with pytest.raises(cls, match=msg_re): ``
74
75
* - ``mock.patch(...) ``
75
76
- ``mocker.patch(...) ``
77
+ * - ``with mock.patch.object(...) as x: ``
78
+ - ``x = mocker.patch.object(...) ``
76
79
Original file line number Diff line number Diff line change 7
7
.. note:: This module needs to control the matplotlib backend, so it
8
8
**must** be imported before ``matplotlib.pyplot``.
9
9
10
+ .. note:: Iris is currently undergoing conversion to PyTest. Once that
11
+ conversion is complete, this module will eventually be removed.
12
+
10
13
The primary class for this module is :class:`IrisTest`.
11
14
12
15
"""
Original file line number Diff line number Diff line change 2
2
#
3
3
# This file is part of Iris and is released under the BSD license.
4
4
# See LICENSE in the root of the repository for full licensing details.
5
- """Provides testing capabilities and customisations specific to Iris."""
5
+ """Provides testing capabilities and customisations specific to Iris.
6
+
7
+ .. note:: This module is private, and is subject to change on short notice.
8
+ """
6
9
7
10
import collections
8
11
from collections .abc import Mapping
You can’t perform that action at this time.
0 commit comments