84
84
]
85
85
86
86
87
- @pytest .mark .remote_data
88
87
def mock_get (self , method , url , * args , ** kwargs ): # pragma: nocover
89
88
assert url == conf .url_api
90
89
@@ -126,7 +125,6 @@ def mock_get(self, method, url, *args, **kwargs): # pragma: nocover
126
125
return MockResponse (data .encode ("utf-8" ))
127
126
128
127
129
- @pytest .mark .remote_data
130
128
@pytest .fixture
131
129
def patch_get (request ): # pragma: nocover
132
130
try :
@@ -140,7 +138,6 @@ def patch_get(request): # pragma: nocover
140
138
return mp
141
139
142
140
143
- @pytest .mark .remote_data
144
141
def test_regularize_object_name (patch_get ):
145
142
assert NasaExoplanetArchive ._regularize_object_name ("kepler 2" ) == "HAT-P-7"
146
143
assert NasaExoplanetArchive ._regularize_object_name ("kepler 1 b" ) == "TrES-2 b"
@@ -150,7 +147,6 @@ def test_regularize_object_name(patch_get):
150
147
assert "No aliases found for name: 'not a planet'" == str (warning [0 ].message )
151
148
152
149
153
- @pytest .mark .remote_data
154
150
def test_backwards_compat (patch_get ):
155
151
"""
156
152
These are the tests from the previous version of this interface.
@@ -188,7 +184,6 @@ def test_backwards_compat(patch_get):
188
184
assert "replaced" in str (error )
189
185
190
186
191
- @pytest .mark .remote_data
192
187
@pytest .mark .filterwarnings ("error" )
193
188
@pytest .mark .parametrize ("table,query" , API_TABLES )
194
189
def test_api_tables (patch_get , table , query ):
@@ -201,7 +196,6 @@ def test_api_tables(patch_get, table, query):
201
196
202
197
203
198
# Mock tests on TAP service below
204
- @pytest .mark .remote_data
205
199
@patch ('astroquery.nasa_exoplanet_archive.core.get_access_url' ,
206
200
Mock (side_effect = lambda x : 'https://some.url' ))
207
201
@pytest .mark .skipif (not pyvo_OK , reason = 'not pyvo_OK' )
@@ -227,7 +221,6 @@ def mock_run_query(object_name="K2-18 b", table="pscomppars", select="pl_name,di
227
221
assert response ['dec' ] == [7.5878315 ] * u .deg
228
222
229
223
230
- @pytest .mark .remote_data
231
224
@patch ('astroquery.nasa_exoplanet_archive.core.get_access_url' ,
232
225
Mock (side_effect = lambda x : 'https://some.url' ))
233
226
@pytest .mark .skipif (not pyvo_OK , reason = 'not pyvo_OK' )
@@ -247,7 +240,6 @@ def mock_run_query(table="ps", select='pl_name,ra,dec', coordinates=SkyCoord(ra=
247
240
assert 'K2-18 b' in response ['pl_name' ]
248
241
249
242
250
- @pytest .mark .remote_data
251
243
@patch ('astroquery.nasa_exoplanet_archive.core.get_access_url' ,
252
244
Mock (side_effect = lambda x : 'https://some.url' ))
253
245
@pytest .mark .skipif (not pyvo_OK , reason = 'not pyvo_OK' )
0 commit comments