@@ -48,7 +48,7 @@ def test_query_region_box(coordinates, width):
48
48
def test_query_region_polygon (polygon ):
49
49
query1 = Irsa .query_region (catalog = "fp_psc" , spatial = "Polygon" , polygon = polygon ,
50
50
get_query_payload = True )
51
- query2 = Irsa .query_region ("m31" , catalog = "fp_psc" , spatial = "Polygon " , polygon = polygon ,
51
+ query2 = Irsa .query_region ("m31" , catalog = "fp_psc" , spatial = "polygon " , polygon = polygon ,
52
52
get_query_payload = True )
53
53
54
54
assert query1 == query2
@@ -58,12 +58,12 @@ def test_query_region_polygon(polygon):
58
58
59
59
def test_query_allsky ():
60
60
query1 = Irsa .query_region (catalog = "fp_psc" , spatial = "All-Sky" , get_query_payload = True )
61
- query2 = Irsa .query_region ("m31" , catalog = "fp_psc" , spatial = "All-Sky " , get_query_payload = True )
61
+ query2 = Irsa .query_region ("m31" , catalog = "fp_psc" , spatial = "allsky " , get_query_payload = True )
62
62
63
63
assert query1 == query2 == "SELECT * FROM fp_psc"
64
64
65
65
66
- @pytest .mark .parametrize ('spatial' , ['cone' , 'box' , 'polygon' , 'all-Sky' , 'All-sky ' , 'invalid' ])
66
+ @pytest .mark .parametrize ('spatial' , ['random_nonsense ' , 'invalid' ])
67
67
def test_spatial_invalid (spatial ):
68
68
with pytest .raises (ValueError ):
69
69
Irsa .query_region (OBJ_LIST [0 ], catalog = 'invalid_spatial' , spatial = spatial )
0 commit comments