Skip to content

Commit e33bcc2

Browse files
committed
Add comments
1 parent 4b144d4 commit e33bcc2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/addon/esmpy/src/esmpy/test/test_api/test_mesh.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
from esmpy.api.constants import FileFormat
2323

24+
# Note that the tests of adding nodes with a mask are outside the test class because some
25+
# are parametrized, and pytest doesn't allow parametrized test methods within a class.
26+
2427
@pytest.mark.parametrize(
2528
"mask_value",
2629
(
@@ -32,7 +35,6 @@
3235
[[0, 0, 0, 0], [-1, -1, -1, -1], [1, 1, 1, 1]],
3336
),
3437
)
35-
3638
def test_add_nodes_with_mask(mask_value):
3739
"""Check adding masked nodes to a mesh."""
3840
if mask_value is None:

src/addon/esmpy/src/esmpy/test/test_api/test_regrid.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
RegridMethod.PATCH,
5454
)
5555

56+
# Note that the tests of regridding fields with a mask are outside the test class because
57+
# some are parametrized, and pytest doesn't allow parametrized test methods within a class.
5658

5759
def create_raster_field(x_of_col, y_of_row, node_mask=None):
5860
"""Create a mesh that is a structured grid of squares."""

0 commit comments

Comments
 (0)