66
77@pytest .mark .parametrize ("use_astropy" , [True , False ])
88def test_eci2ecef (use_astropy ):
9+ pytest .importorskip ("numpy" )
910 if use_astropy :
1011 pytest .importorskip ("astropy" )
1112 # this example from Matlab eci2ecef docs
@@ -19,6 +20,7 @@ def test_eci2ecef(use_astropy):
1920
2021@pytest .mark .parametrize ("use_astropy" , [True , False ])
2122def test_ecef2eci (use_astropy ):
23+ pytest .importorskip ("numpy" )
2224 if use_astropy :
2325 pytest .importorskip ("astropy" )
2426 # this example from Matlab ecef2eci docs
@@ -32,6 +34,7 @@ def test_ecef2eci(use_astropy):
3234
3335@pytest .mark .parametrize ("use_astropy" , [True , False ])
3436def test_eci2geodetic (use_astropy ):
37+ pytest .importorskip ("numpy" )
3538 if use_astropy :
3639 pytest .importorskip ("astropy" )
3740
@@ -45,6 +48,7 @@ def test_eci2geodetic(use_astropy):
4548
4649@pytest .mark .parametrize ("use_astropy" , [True , False ])
4750def test_geodetic2eci (use_astropy ):
51+ pytest .importorskip ("numpy" )
4852 if use_astropy :
4953 pytest .importorskip ("astropy" )
5054
@@ -59,6 +63,7 @@ def test_geodetic2eci(use_astropy):
5963@pytest .mark .parametrize ("use_astropy" , [True , False ])
6064def test_eci2aer (use_astropy ):
6165 # test coords from Matlab eci2aer
66+ pytest .importorskip ("numpy" )
6267 if use_astropy :
6368 pytest .importorskip ("astropy" )
6469 t = datetime (1969 , 7 , 20 , 21 , 17 , 40 )
@@ -74,6 +79,7 @@ def test_eci2aer(use_astropy):
7479@pytest .mark .parametrize ("use_astropy" , [True , False ])
7580def test_aer2eci (use_astropy ):
7681 # test coords from Matlab aer2eci
82+ pytest .importorskip ("numpy" )
7783 if use_astropy :
7884 pytest .importorskip ("astropy" )
7985
0 commit comments