@@ -49,9 +49,10 @@ def test_query_region_async_galactic(self):
49
49
assert "-c=G" in payload
50
50
51
51
def test_query_Vizier_instance (self ):
52
- v = vizier .core .Vizier (
53
- columns = ['_RAJ2000' , 'DEJ2000' , 'B-V' , 'Vmag' , 'Plx' ],
54
- column_filters = {"Vmag" : ">10" }, keywords = ["optical" , "xry" ])
52
+ with pytest .warns (UserWarning , match = "xry : No such keyword" ):
53
+ v = vizier .core .Vizier (
54
+ columns = ['_RAJ2000' , 'DEJ2000' , 'B-V' , 'Vmag' , 'Plx' ],
55
+ column_filters = {"Vmag" : ">10" }, keywords = ["optical" , "xry" ])
55
56
56
57
result = v .query_object ("HD 226868" , catalog = ["NOMAD" , "UCAC" ])
57
58
assert isinstance (result , commons .TableList )
@@ -64,7 +65,7 @@ def test_vizier_column_restriction(self):
64
65
# catalogs include Bmag's
65
66
v = vizier .core .Vizier (
66
67
columns = ['_RAJ2000' , 'DEJ2000' , 'B-V' , 'Vmag' , 'Plx' ],
67
- column_filters = {"Vmag" : ">10" }, keywords = ["optical" , "xry " ])
68
+ column_filters = {"Vmag" : ">10" }, keywords = ["optical" , "X-ray " ])
68
69
69
70
result = v .query_object ("HD 226868" , catalog = ["NOMAD" , "UCAC" ])
70
71
for table in result :
@@ -97,7 +98,8 @@ def test_regressiontest_invalidtable(self):
97
98
keywords = ['Radio' , 'IR' ], row_limit = 5000 )
98
99
C = SkyCoord (359.61687 * u .deg , - 0.242457 * u .deg , frame = "galactic" )
99
100
100
- V .query_region (C , radius = 2 * u .arcmin )
101
+ with pytest .warns (UserWarning , match = "VOTABLE parsing raised exception" ):
102
+ V .query_region (C , radius = 2 * u .arcmin )
101
103
102
104
def test_multicoord (self ):
103
105
0 commit comments