@@ -265,7 +265,7 @@ def test_add_votable_fields():
265
265
simbad_instance = simbad .SimbadClass ()
266
266
with pytest .raises (ValueError , match = r"The votable fields \'flux_\*\*\*\(filtername\)\' are removed *" ):
267
267
simbad_instance .add_votable_fields ("flux_error(u)" )
268
- with pytest .warns (DeprecationWarning , match = r"The notation \'flux\(U \)\' is deprecated since 0.4.8 *" ):
268
+ with pytest .warns (DeprecationWarning , match = r"The notation \'flux\(XXX \)\' is deprecated since 0.4.8 *" ):
269
269
simbad_instance .add_votable_fields ("flux(u)" )
270
270
assert "u_" in str (simbad_instance .columns_in_output )
271
271
with pytest .raises (ValueError , match = "Coordinates conversion and formatting is no longer supported*" ):
@@ -284,6 +284,16 @@ def test_add_votable_fields():
284
284
# bundles and tables require a connection to the tap_schema and are thus tested in test_simbad_remote
285
285
286
286
287
+ @pytest .mark .usefixtures ("_mock_simbad_class" )
288
+ @pytest .mark .usefixtures ("_mock_basic_columns" )
289
+ @pytest .mark .usefixtures ("_mock_linked_to_basic" )
290
+ def test_add_list_of_fluxes ():
291
+ # regression test for https://github.com/astropy/astroquery/issues/3185#issuecomment-2599191953
292
+ simbad_instance = simbad .Simbad ()
293
+ with pytest .warns (DeprecationWarning , match = r"The notation \'flux\(XXX\)\' is deprecated since 0.4.8 *" ):
294
+ simbad_instance .add_votable_fields ("flux(U)" , "flux(J)" )
295
+
296
+
287
297
def test_list_wildcards (capsys ):
288
298
simbad .SimbadClass .list_wildcards ()
289
299
wildcards = capsys .readouterr ()
0 commit comments