Skip to content

Commit

Permalink
Fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Damian authored and Adrian Damian committed Oct 11, 2024
1 parent 993cef5 commit 0cf461d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion astroquery/alma/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def query_tap(self, query, maxrec=None, uploads=None):
schema in the actual query. The values are either astropy.table.Table instances
or file names or file like handles such as io.StringIO to table definition in
IVOA VOTable format.
Examples
----------
>>> uploads = {'tmptable': '/tmp/tmptable_def.xml'}
Expand Down
5 changes: 4 additions & 1 deletion astroquery/alma/tests/test_alma_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,11 @@ def test_big_download_regression(alma):
alma.download_files([files['access_url'][3]])


@pytest.mark.remote_data
def test_tap_upload():
tmp_table = StringIO('''<?xml version="1.0" encoding="UTF-8"?>
<VOTABLE xmlns="http://www.ivoa.net/xml/VOTable/v1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3">
<VOTABLE xmlns="http://www.ivoa.net/xml/VOTable/v1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3">
<RESOURCE>
<TABLE>
<FIELD name="prop_id" datatype="char" arraysize="*">
Expand All @@ -588,6 +590,7 @@ def test_tap_upload():
for row in res:
assert row['proposal_id'] == '2013.1.01365.S'


@pytest.mark.remote_data
def test_download_html_file(alma, tmp_path):
alma.cache_location = tmp_path
Expand Down

0 comments on commit 0cf461d

Please sign in to comment.