Skip to content

Commit

Permalink
Merge branch 'guess_coord' of github.com:HGWright/iris into guess_coord
Browse files Browse the repository at this point in the history
* 'guess_coord' of github.com:HGWright/iris:
  [pre-commit.ci] auto fixes from pre-commit.com hooks
precommit merge
  • Loading branch information
HGWright committed Nov 9, 2023
2 parents 6020a63 + b5da396 commit cffa5b6
Showing 1 changed file with 11 additions and 8 deletions.
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 cffa5b6

Please sign in to comment.