Skip to content

Commit

Permalink
Improved test coverage for regridding.find_indices().
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Dec 4, 2023
1 parent 9e672ea commit 5e887f2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion regridding/_find_indices/_tests/test_find_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
),
],
)
@pytest.mark.parametrize("method", ["brute", "searchsorted"])
@pytest.mark.parametrize(
argnames="method",
argvalues=[
"brute",
"searchsorted",
pytest.param("invalid method", marks=pytest.mark.xfail)
],
)
def test_find_indices_1d(
coordinates_input: tuple[np.ndarray],
coordinates_output: tuple[np.ndarray],
Expand Down

0 comments on commit 5e887f2

Please sign in to comment.