75
75
),
76
76
),
77
77
]
78
- TAP_TABLES = [
79
- ("ps" , dict (where = "hostname='Kepler-11'" )),
80
- ("pscomppars" , dict (where = "hostname='WASP-166'" ))
81
- # ("ml", dict(where="pl_name='MOA-2010-BLG-353L b'")), # new microlensing table not ready for the wild yet
82
- # ("keplernames", dict(where="kepid=10601284")), # not yet officially supported
83
- # ("k2names", dict(where="epic_host='EPIC 206027655'")), # not yet officially supported
84
- ]
78
+ # TAP_TABLES = [
79
+ # ("ps", dict(where="hostname='Kepler-11'")),
80
+ # ("pscomppars", dict(where="hostname='WASP-166'"))
81
+ # # ("ml", dict(where="pl_name='MOA-2010-BLG-353L b'")), # new microlensing table not ready for the wild yet
82
+ # # ("keplernames", dict(where="kepid=10601284")), # not yet officially supported
83
+ # # ("k2names", dict(where="epic_host='EPIC 206027655'")), # not yet officially supported
84
+ # ]
85
85
86
86
87
87
def mock_get (self , method , url , * args , ** kwargs ): # pragma: nocover
@@ -139,6 +139,7 @@ def patch_get(request): # pragma: nocover
139
139
140
140
141
141
def test_regularize_object_name (patch_get ):
142
+ NasaExoplanetArchive ._tap_tables = ['list' ]
142
143
assert NasaExoplanetArchive ._regularize_object_name ("kepler 2" ) == "HAT-P-7"
143
144
assert NasaExoplanetArchive ._regularize_object_name ("kepler 1 b" ) == "TrES-2 b"
144
145
@@ -152,6 +153,7 @@ def test_backwards_compat(patch_get):
152
153
These are the tests from the previous version of this interface.
153
154
They query old tables by default and should return InvalidTableError.
154
155
"""
156
+ NasaExoplanetArchive ._tap_tables = ['list' ]
155
157
156
158
# test_hd209458b_exoplanets_archive
157
159
with pytest .warns (AstropyDeprecationWarning ):
@@ -187,6 +189,7 @@ def test_backwards_compat(patch_get):
187
189
@pytest .mark .filterwarnings ("error" )
188
190
@pytest .mark .parametrize ("table,query" , API_TABLES )
189
191
def test_api_tables (patch_get , table , query ):
192
+ NasaExoplanetArchive ._tap_tables = ['list' ]
190
193
data = NasaExoplanetArchive .query_criteria (table , select = "*" , ** query )
191
194
assert len (data ) > 0
192
195
0 commit comments