43
43
44
44
@pytest .mark .remote_data
45
45
class TestEso :
46
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
46
47
def test_query_tap_service (self ):
47
48
eso = Eso ()
48
49
eso .ROW_LIMIT = 7
@@ -53,6 +54,7 @@ def test_query_tap_service(self):
53
54
assert len (t ) > 0 , "Table length is zero"
54
55
assert len (t ) == eso .ROW_LIMIT , f"Table length is { lt } , expected { eso .ROW_LIMIT } "
55
56
57
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
56
58
def test_row_limit (self ):
57
59
eso = Eso ()
58
60
eso .ROW_LIMIT = 5
@@ -73,6 +75,7 @@ def test_row_limit(self):
73
75
n = len (table )
74
76
assert n == eso .ROW_LIMIT , f"Expected { eso .ROW_LIMIT } ; Obtained { n } "
75
77
78
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
76
79
def test_top (self ):
77
80
eso = Eso ()
78
81
top = 5
@@ -91,6 +94,7 @@ def test_top(self):
91
94
n = len (table )
92
95
assert n == top , f"Expected { top } ; Obtained { n } "
93
96
97
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
94
98
def test_SgrAstar (self ):
95
99
eso = Eso ()
96
100
eso .ROW_LIMIT = 1
@@ -130,6 +134,7 @@ def test_SgrAstar(self):
130
134
assert 'target_name' in result_s .colnames
131
135
assert 'b319' in result_s ['target_name' ]
132
136
137
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
133
138
def test_multicollection (self , tmp_path ):
134
139
135
140
eso = Eso ()
@@ -151,6 +156,7 @@ def test_multicollection(self, tmp_path):
151
156
for tc in test_collections :
152
157
assert counts [tc ] > 0 , f"{ tc } : collection not present in results"
153
158
159
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
154
160
def test_empty_return (self ):
155
161
# test for empty return with an object from the North
156
162
eso = Eso ()
@@ -164,6 +170,7 @@ def test_empty_return(self):
164
170
165
171
assert len (result_s ) == 0
166
172
173
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
167
174
def test_SgrAstar_remotevslocal (self , tmp_path ):
168
175
eso = Eso ()
169
176
# TODO originally it was 'gravity', but it is not yet ready in the TAP ISTs
@@ -236,6 +243,7 @@ def test_apex_retrieval(self):
236
243
237
244
assert np .all (tbl == tblb )
238
245
246
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
239
247
def test_each_instrument_SgrAstar (self , tmp_path ):
240
248
eso = Eso ()
241
249
eso .cache_location = tmp_path
@@ -272,6 +280,7 @@ def test_each_instrument_SgrAstar(self, tmp_path):
272
280
assert result is not None , f"query_instrument({ instrument } ) returned None"
273
281
assert len (result ) > 0 , f"query_instrument({ instrument } ) returned no records"
274
282
283
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
275
284
def test_each_collection_and_SgrAstar (self , tmp_path ):
276
285
eso = Eso ()
277
286
eso .cache_location = tmp_path
@@ -301,6 +310,7 @@ def test_each_collection_and_SgrAstar(self, tmp_path):
301
310
assert len (generic_result ) > 0 , \
302
311
f"query_collection({ collection } ) returned no records"
303
312
313
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
304
314
def test_mixed_case_instrument (self , tmp_path ):
305
315
eso = Eso ()
306
316
eso .cache_location = tmp_path
@@ -314,6 +324,7 @@ def test_mixed_case_instrument(self, tmp_path):
314
324
315
325
assert all (result1 .values_equal (result2 ))
316
326
327
+ @pytest .mark .filterwarnings ("ignore::pyvo.dal.exceptions.DALOverflowWarning" )
317
328
def test_main_SgrAstar (self ):
318
329
eso = Eso ()
319
330
eso .ROW_LIMIT = 5
0 commit comments