def test_spatial_valdi(spatial, result): out = Irsa._parse_spatial(spatial, coordinates='m31', radius=5 * u.deg, width=5 * u.deg, polygon=[(5 * u.hour, 5 * u.deg)] * 3) assert out['spatial'] == result
def test_spatial_invalid(spatial): with pytest.raises(ValueError): Irsa._parse_spatial(spatial, coordinates='m31')