Skip to content

Commit 7cc095f

Browse files
committed
add a remote test for this issue
1 parent b1de4d4 commit 7cc095f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

astroquery/splatalogue/tests/test_splatalogue.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,20 @@ def test_exclude(patch_post):
143143

144144
for k in d:
145145
assert k[:3] != 'no_'
146+
147+
@remote_data
148+
def test_exclude_remote():
149+
# regression test for issue 616
150+
results = splatalogue.Splatalogue.query_lines(
151+
min_frequency=351.9*u.GHz,
152+
max_frequency=352.*u.GHz,
153+
chemical_name='Formaldehyde',
154+
energy_max=4000,
155+
energy_type='eu_k',
156+
line_lists=['CDMS'],
157+
export_limit=1000.,
158+
exclude=None,
159+
version='v2.0',
160+
show_upper_degeneracy=True,
161+
)
162+
assert len(results) >= 1

0 commit comments

Comments
 (0)