@@ -34,11 +34,11 @@ def test_invalid_query_exoplanets():
34
34
35
35
36
36
@pytest .mark .remote_data
37
- def test_missing_criterion_kepler ():
37
+ def test_invalid_query_kepler ():
38
38
with pytest .raises (InvalidQueryError ) as error :
39
39
NasaExoplanetArchive .query_criteria ("keplertimeseries" , where = "kepid=8561063" )
40
- assert "Queries against the Kepler Time Series table require " in str (error )
41
- NasaExoplanetArchive .query_criteria ("keplertimeseries" , kepid = 8561063 , quarter = 14 )
40
+ assert "'KEPID': invalid identifier " in str (error )
41
+ NasaExoplanetArchive .query_criteria ("keplertimeseries" , where = "star_id=8561063" )
42
42
43
43
44
44
@pytest .mark .skip ('TMP skip, server stuck with query' )
@@ -135,10 +135,10 @@ def test_request_to_sql():
135
135
136
136
assert payload_sql == "select * from ps where hostname like 'Kepler%' order by hostname"
137
137
138
- # "cumulative" table is not in TAP_TABLES, payload is sent directly as GET params
138
+ # "cumulative" table is now in TAP_TABLES
139
139
payload_dict = NasaExoplanetArchive .query_criteria (table = "cumulative" , where = "pl_hostname like 'Kepler%'" ,
140
140
order = "pl_hostname" , get_query_payload = True )
141
- assert isinstance (payload_dict , dict )
141
+ assert isinstance (payload_dict , str )
142
142
143
143
144
144
@pytest .mark .remote_data
@@ -190,5 +190,5 @@ def test_format():
190
190
@pytest .mark .remote_data
191
191
def test_table_case_sensivity ():
192
192
# Regression test from #3090
193
- table = NasaExoplanetArchive .query_criteria (table = 'DI_STARS_EXEP' , select = '* ' )
193
+ table = NasaExoplanetArchive .query_criteria (table = 'DI_STARS_EXEP' , select = 'tic_id ' )
194
194
assert len (table ) > 0
0 commit comments