Skip to content

Commit 196486e

Browse files
committed
minor test fix - tests pass
1 parent 223838d commit 196486e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

astroquery/alma/tests/test_alma_remote.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import tempfile
44
import shutil
5+
import numpy as np
56
from astropy.tests.helper import pytest, remote_data
67
from astropy import coordinates
78
from astropy import units as u
@@ -45,11 +46,6 @@ def test_doc_example(self, temp_dir):
4546
alma = Alma()
4647
alma.cache_location = temp_dir
4748

48-
from astroquery.alma import Alma
49-
from astropy import units as u
50-
from astropy import coordinates
51-
import numpy as np
52-
alma = Alma()
5349
m83_data = alma.query_object('M83')
5450
assert m83_data.colnames == ['Project_code', 'Source_name', 'RA',
5551
'Dec', 'Band', 'Frequency_resolution',
@@ -68,4 +64,5 @@ def test_doc_example(self, temp_dir):
6864
assert 'uid://A002/X3b3400/X90f' in uids
6965

7066
link_list = alma.stage_data(uids[0:2])
71-
alma.data_size(link_list)
67+
totalsize = alma.data_size(link_list)
68+
assert totalsize.to(u.GB).value > 1

0 commit comments

Comments
 (0)