Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/7190.internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:user:`2319bli` has partially improved the names of various test classes. (:issue:`6625`)
2 changes: 1 addition & 1 deletion lib/iris/tests/integration/test_PartialDateTime.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from iris.time import PartialDateTime


class Test:
class TestPartialDateTime:
@_shared_utils.skip_data
def test_cftime_interface(self):
# The `netcdf4` Python module introduced new calendar classes by v1.2.7
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/analysis/cartography/test_wrap_lons.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from iris.analysis.cartography import wrap_lons


class Test:
class TestWrapLons:
def test_values(self):
# The documented behaviour (matches the docstring example).
result = wrap_lons(np.array([185, 30, -200, 75]), -180, 360)
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/analysis/maths/test__get_dtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from iris.cube import Cube


class Test:
class TestGetDtype:
def _check_call(self, obj, expected_dtype):
result = _get_dtype(obj)
assert expected_dtype == result
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/analysis/test_PercentileAggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from iris.tests import _shared_utils


class Test:
class TestPercentileAggregator:
def test_init(self, mocker):
name = "percentile"
units_func = mocker.sentinel.units_func
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from iris.common.metadata import _NamedTupleMeta


class Test:
class TestNamedTupleMeta:
@staticmethod
def names(classes):
return [cls.__name__ for cls in classes]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from iris.common.mixin import LimitedAttributeDict


class Test:
class TestLimitedAttributeDict:
@pytest.fixture(autouse=True)
def _setup(self):
self.forbidden_keys = LimitedAttributeDict.CF_ATTRS_FORBIDDEN
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/coord_systems/test_Geostationary.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from iris.tests import _shared_utils


class Test:
class TestGeostationary:
@pytest.fixture(autouse=True)
def _setup(self):
# Set everything to non-default values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from iris.tests import _shared_utils


class Test:
class TestVerticalPerspective:
@pytest.fixture(autouse=True)
def _setup(self):
self.latitude_of_projection_origin = 0.0
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/fileformats/dot/test__dot_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from iris.fileformats.dot import _DOT_EXECUTABLE_PATH, _dot_path


class Test:
class TestDotPath:
@pytest.fixture(autouse=True)
def _setup(self, mocker):
# Because _dot_path is triggered by the initial import we
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/fileformats/ff/test_ENDGame.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from iris.tests import _shared_utils


class Test:
class TestENDGame:
def test_class_attributes(self):
reals = np.arange(6) + 100
grid = ENDGame(None, None, reals, None)
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/fileformats/ff/test_NewDynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from iris.tests import _shared_utils


class Test:
class TestNewDynamics:
def test_class_attributes(self):
reals = np.arange(6) + 100
grid = NewDynamics(None, None, reals, None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from iris.tests._shared_utils import assert_no_warnings_regexp


class Test:
class TestVerticalCoord:
@pytest.fixture(autouse=True)
def _setup(self, mocker):
self.field = mocker.Mock(
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/fileformats/pp/test__field_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
_DATA_LEN_WORD = struct.pack(">L", 4)


class Test:
class TestFieldGen:
@pytest.fixture
def mock_for_field_gen(self, mocker):
@contextlib.contextmanager
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/plot/test_hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


@_shared_utils.skip_plot
class Test:
class TestHist:
@pytest.fixture(autouse=True)
def _create_data(self):
self.data = np.array([0, 100, 110, 120, 200, 320])
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/util/test__is_circular.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pytest.param(False, id="without_bounds"),
],
)
class Test:
class TestIsCircular:
@staticmethod
def _calc_bounds(points):
diff = np.diff(points).mean()
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/util/test_find_discontiguities.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def full2d_global():


@_shared_utils.skip_data
class Test:
class TestFindDiscontiguities:
@pytest.fixture(autouse=True)
def _setup(self):
# Set up a 2d lat-lon cube with 2d coordinates that have been
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/tests/unit/util/test_squeeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import iris.tests.stock as stock


class Test:
class TestSqueeze:
@pytest.fixture(autouse=True)
def _setup(self):
self.cube = stock.simple_2d_w_multidim_and_scalars()
Expand Down
Loading