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():
825
825
ax .set_aspect ('equal' )
826
826
827
827
828
- @pytest .mark .parametrize ('mode' , ('a ' , 'b ' ))
828
+ @pytest .mark .parametrize ('mode' , ('by_semiaxis ' , 'by_radius ' ))
829
829
@image_comparison (baseline_images = ['annulus' ], extensions = ['png' ])
830
830
def test_annulus_setters (mode ):
831
831
@@ -838,22 +838,23 @@ def test_annulus_setters(mode):
838
838
ax .set_aspect ('equal' )
839
839
840
840
cir .center = (0.5 , 0.5 )
841
- if mode == 'a' :
841
+ ell .center = (0.5 , 0.5 )
842
+
843
+ if mode == 'by_semiaxis' :
842
844
cir .set_semimajor (0.2 )
843
845
cir .set_semiminor (0.2 )
844
846
assert cir .radii == (0.2 , 0.2 )
845
- elif mode == 'b' :
846
- cir .radii = 0.2
847
- cir .width = 0.05
848
847
849
- ell .center = (0.5 , 0.5 )
850
- if mode == 'a' :
851
848
ell .set_semimajor (0.5 )
852
849
ell .set_semiminor (0.3 )
853
850
assert ell .radii == (0.5 , 0.3 )
854
- elif mode == 'b' :
851
+ elif mode == 'by_radius' :
852
+ cir .radii = 0.2
855
853
ell .radii = (0.5 , 0.3 )
854
+
855
+ cir .width = 0.05
856
856
ell .width = 0.1
857
+
857
858
ell .angle = 45
858
859
859
860
You can’t perform that action at this time.
0 commit comments