Skip to content

Commit b197e5a

Browse files
committed
add a remote test for findcatalog respecting ucd keywords
1 parent 6547d69 commit b197e5a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

astroquery/vizier/tests/test_vizier_remote.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,13 @@ def test_findcatalog_maxcatalog(self):
125125
# assert str(exc.value)==("Maximum number of catalogs exceeded."
126126
# " Try setting max_catalogs "
127127
# "to a large number and try again")
128+
129+
def test_findcatalog_ucd(self):
130+
V = vizier.core.Vizier()
131+
ucdresult = V(ucd='time.age*').find_catalogs('eclipsing binary', max_catalogs=5000)
132+
result = V.find_catalogs('eclipsing binary', max_catalogs=5000)
133+
134+
assert len(ucdresult) >= 12 # count as of 1/15/2018
135+
assert len(result) >= 628
136+
# important part: we're testing that UCD is parsed and some catalogs are ruled out
137+
assert len(ucdresult) < len(result)

0 commit comments

Comments
 (0)