Skip to content

Commit 57640b6

Browse files
committed
exoplanet orbits cleanup
1 parent 192c31f commit 57640b6

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

astroquery/exoplanet_orbit_database/tests/test_exoplanet_orbit_database.py

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
import pytest
44
import astropy.units as u
55
from astropy.tests.helper import assert_quantity_allclose
6-
from astropy.utils import minversion
76
from astropy.coordinates import SkyCoord
87

98
from ...exoplanet_orbit_database import ExoplanetOrbitDatabase
109

11-
APY_LT12 = not minversion('astropy', '1.2')
1210
LOCAL_TABLE_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)),
1311
'data', 'exoplanet_orbit_database.csv')
1412

@@ -54,25 +52,6 @@ def test_hd209458b_exoplanet_orbit_database():
5452
assert params['TRANSIT']
5553

5654

57-
@pytest.mark.remote_data
58-
@pytest.mark.skipif('APY_LT12')
59-
def test_hd209458b_exoplanet_orbit_database_apy_lt12():
60-
# Testing intentionally un-stripped string:
61-
params = ExoplanetOrbitDatabase.query_planet('HD 209458 b ')
62-
assert_quantity_allclose(params["R"], 1.320 * u.Unit('R_jup'),
63-
atol=0.1 * u.Unit('R_jup'))
64-
65-
66-
@pytest.mark.remote_data
67-
@pytest.mark.skipif('not APY_LT12')
68-
def test_hd209458b_exoplanet_orbit_database_apy_gt12():
69-
# Testing intentionally un-stripped string:
70-
with pytest.raises(ValueError):
71-
params = ExoplanetOrbitDatabase.query_planet('HD 209458 b ')
72-
assert_quantity_allclose(params['R'], 1.320 * u.Unit('R_jup'),
73-
atol=0.1 * u.Unit('R_jup'))
74-
75-
7655
@pytest.mark.remote_data
7756
def test_hd209458b_exoplanet_orbit_database_coords():
7857
params = ExoplanetOrbitDatabase.query_planet('HD 209458 b ')
@@ -100,25 +79,6 @@ def test_hd209458b_exoplanet_orbit_database_local():
10079
assert params['TRANSIT']
10180

10281

103-
@pytest.mark.skipif('APY_LT12')
104-
def test_hd209458b_exoplanet_orbit_database_apy_lt12_local():
105-
# Testing intentionally un-stripped string:
106-
params = ExoplanetOrbitDatabase.query_planet('HD 209458 b ',
107-
table_path=LOCAL_TABLE_PATH)
108-
assert_quantity_allclose(params["R"], 1.320 * u.Unit('R_jup'),
109-
atol=0.1 * u.Unit('R_jup'))
110-
111-
112-
@pytest.mark.skipif('not APY_LT12')
113-
def test_hd209458b_exoplanet_orbit_database_apy_gt12_local():
114-
# Testing intentionally un-stripped string:
115-
with pytest.raises(ValueError):
116-
params = ExoplanetOrbitDatabase.query_planet('HD 209458 b ',
117-
table_path=LOCAL_TABLE_PATH)
118-
assert_quantity_allclose(params['R'], 1.320 * u.Unit('R_jup'),
119-
atol=0.1 * u.Unit('R_jup'))
120-
121-
12282
def test_hd209458b_exoplanet_orbit_database_coords_local():
12383
params = ExoplanetOrbitDatabase.query_planet('HD 209458 b ',
12484
table_path=LOCAL_TABLE_PATH)

0 commit comments

Comments
 (0)