Skip to content

Commit 06dffb9

Browse files
rickynilssonbsipocz
authored andcommitted
Fix typos
1 parent 27ff60f commit 06dffb9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

astroquery/nasa_exoplanet_archive/tests/test_nasa_exoplanet_archive.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ def mock_run_query(table="ps", select='pl_name,ra,dec', coordinates=SkyCoord(ra=
235235
result = PropertyMock()
236236
result = {'pl_name': 'K2-18 b'}
237237
return result
238-
nasa_exoplanet_archive.query_object = mock_run_query
239-
response = nasa_exoplanet_archive.query_object()
238+
nasa_exoplanet_archive.query_region = mock_run_query
239+
response = nasa_exoplanet_archive.query_region()
240240
assert 'K2-18 b' in response['pl_name']
241241

242242

@@ -253,8 +253,8 @@ def mock_run_query(table="ps", select='pl_name,discoverymethod,dec', where="disc
253253
result = PropertyMock()
254254
result = {'pl_name': 'TCP J05074264+2447555 b', 'discoverymethod': 'Microlensing', 'dec': [24.7987499] * u.deg}
255255
return result
256-
nasa_exoplanet_archive.query_object = mock_run_query
257-
response = nasa_exoplanet_archive.query_object()
256+
nasa_exoplanet_archive.query_criteria = mock_run_query
257+
response = nasa_exoplanet_archive.query_criteria()
258258
assert 'TCP J05074264+2447555 b' in response['pl_name']
259259
assert 'Microlensing' in response['discoverymethod']
260260
assert response['dec'] == [24.7987499] * u.deg

0 commit comments

Comments
 (0)