diff --git a/docs/src/developers_guide/contributing_pytest_conversions.rst b/docs/src/developers_guide/contributing_pytest_conversions.rst index 617955c5a1..a270ac1011 100644 --- a/docs/src/developers_guide/contributing_pytest_conversions.rst +++ b/docs/src/developers_guide/contributing_pytest_conversions.rst @@ -50,6 +50,10 @@ Conversion Checklist #. Check for references to ``self.tmp_dir``. In pytest, ``tmp_path`` is used instead, and can be passed into functions as a fixture. #. Check for ``if __name__ == 'main'``. This is no longer needed with pytest. +#. Replace any remaining references to :mod:`iris.tests` with references to + :mod:`iris.tests._shared_utils`. (E.g. :func:`iris.tests.get_data_path` to + :func:`iris.tests._shared_utils.get_data_path`). +#. Remove the top-level import of :mod:`iris.tests` (usually ``import iris.tests as tests``). #. Check for ``mock.patch("warnings.warn")``. This can be replaced with ``pytest.warns(match=message)``. #. Ensure that all test classes start with ``Test``. Tests will not run in pytest without it.