Skip to content

Commit f48b65b

Browse files
committed
annotations and code cleaning
1 parent f565ee6 commit f48b65b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

plotpy/tests/items/test_image_masked.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ def build_items(self) -> list:
3636
xdata=[0, 20],
3737
ydata=[0, 25],
3838
)
39-
image.add_masked_area("rectangular", 0, 0, 10, 10, True)
40-
image.apply_masked_areas()
4139
return [image]
4240

4341

plotpy/tests/unit/test_mask_tool.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616
@pytest.mark.parametrize("shape_tool_cls", [RectangleTool, CircleTool])
1717
@pytest.mark.parametrize("inside", [True, False])
1818
def test_image_mask_tool(shape_tool_cls: type[RectangularShapeTool], inside: bool):
19-
"""Test ImageMaskTool"""
19+
"""Test the ImageMaskTool with a shape tool.
20+
21+
Args:
22+
shape_tool_cls: The shape tool class to use.
23+
inside: If the mask should be inside or outside the shape.
24+
"""
2025
with qt_app_context(exec_loop=False):
2126
win = make.dialog(type="image", toolbar=True)
2227
item = make.maskedimage(gen_image4(100, 100))

0 commit comments

Comments
 (0)