Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 9, 2023
1 parent a7e6aa9 commit b5da396
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions lib/iris/tests/unit/coords/test_Coord.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,7 @@ def test_from_coord(self, coord):
new_coord = coord.from_coord()
assert new_coord.ignore_axis is True


class Test___init____abstractmethod(tests.IrisTest):
def test(self):
emsg = (
Expand Down
19 changes: 11 additions & 8 deletions lib/iris/tests/unit/util/test_guess_coord_axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ def coord():
return coord


@pytest.mark.parametrize("coordinate, axis",
[("longitude", "X"),
("grid_longitude", "X"),
("projection_x_coordinate", "X"),
("latitude", "Y"),
("grid_latitude", "Y"),
("projection_y_coordinate", "Y")]
)
@pytest.mark.parametrize(
"coordinate, axis",
[
("longitude", "X"),
("grid_longitude", "X"),
("projection_x_coordinate", "X"),
("latitude", "Y"),
("grid_latitude", "Y"),
("projection_y_coordinate", "Y"),
],
)
def testcoord(coordinate, axis, coord):
coord.standard_name = coordinate
assert guess_coord_axis(coord) == axis
Expand Down

0 comments on commit b5da396

Please sign in to comment.