File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -825,7 +825,7 @@ def test_annulus():
825825 ax .set_aspect ('equal' )
826826
827827
828- @pytest .mark .parametrize ('mode' , ('a ' , 'b ' ))
828+ @pytest .mark .parametrize ('mode' , ('by_semiaxis ' , 'by_radius ' ))
829829@image_comparison (baseline_images = ['annulus' ], extensions = ['png' ])
830830def test_annulus_setters (mode ):
831831
@@ -838,22 +838,23 @@ def test_annulus_setters(mode):
838838 ax .set_aspect ('equal' )
839839
840840 cir .center = (0.5 , 0.5 )
841- if mode == 'a' :
841+ ell .center = (0.5 , 0.5 )
842+
843+ if mode == 'by_semiaxis' :
842844 cir .set_semimajor (0.2 )
843845 cir .set_semiminor (0.2 )
844846 assert cir .radii == (0.2 , 0.2 )
845- elif mode == 'b' :
846- cir .radii = 0.2
847- cir .width = 0.05
848847
849- ell .center = (0.5 , 0.5 )
850- if mode == 'a' :
851848 ell .set_semimajor (0.5 )
852849 ell .set_semiminor (0.3 )
853850 assert ell .radii == (0.5 , 0.3 )
854- elif mode == 'b' :
851+ elif mode == 'by_radius' :
852+ cir .radii = 0.2
855853 ell .radii = (0.5 , 0.3 )
854+
855+ cir .width = 0.05
856856 ell .width = 0.1
857+
857858 ell .angle = 45
858859
859860
You can’t perform that action at this time.
0 commit comments