Skip to content

Commit 59e2ed6

Browse files
committed
Add tests
1 parent 24a90b9 commit 59e2ed6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_diagram_classes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,12 @@ def test_three_way_euler_with_xor_set():
275275
def test_axis_initialization():
276276
diagram = EulerDiagram.from_sets([set(), set()])
277277
return diagram.ax.get_figure()
278+
279+
280+
@pytest.mark.mpl_image_compare
281+
def test_set_artists():
282+
fig, ax = plt.subplots()
283+
diagram = SetDiagram([(0, 0), (1, 0)], [0.66, 0.66], ax=ax)
284+
for artist in diagram.set_artists:
285+
artist.set_visible(True)
286+
return fig

0 commit comments

Comments
 (0)