From 3a759b198b7441f3b6fe8016f29bbe3b0aec4b42 Mon Sep 17 00:00:00 2001 From: Brigitta Sipocz Date: Fri, 5 Jun 2015 15:12:41 +0100 Subject: [PATCH] Adding SPHERE to the instrument list --- astroquery/eso/tests/test_eso_remote.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/astroquery/eso/tests/test_eso_remote.py b/astroquery/eso/tests/test_eso_remote.py index 8668d0b79b..a28d8fbe2c 100644 --- a/astroquery/eso/tests/test_eso_remote.py +++ b/astroquery/eso/tests/test_eso_remote.py @@ -1,5 +1,4 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst -import os import tempfile import shutil from astropy.tests.helper import pytest, remote_data @@ -17,10 +16,11 @@ SKIP_TESTS = not(HAS_KEYRING and ESO_IMPORTED) -instrument_list = [u'fors1', u'fors2', u'vimos', u'omegacam', u'hawki', - u'isaac', u'naco', u'visir', u'vircam', u'apex', u'uves', - u'giraffe', u'xshooter', u'muse', u'crires', u'kmos', - u'sinfoni', u'amber', u'midi', u'harps'] +instrument_list = [u'fors1', u'fors2', u'sphere', u'vimos', u'omegacam', + u'hawki', u'isaac', u'naco', u'visir', u'vircam', u'apex', + u'uves', u'giraffe', u'xshooter', u'muse', u'crires', + u'kmos', u'sinfoni', u'amber', u'midi', u'harps'] + @pytest.mark.skipif('SKIP_TESTS') @remote_data @@ -28,6 +28,7 @@ class TestEso: @pytest.fixture() def temp_dir(self, request): my_temp_dir = tempfile.mkdtemp() + def fin(): shutil.rmtree(my_temp_dir) request.addfinalizer(fin) @@ -105,7 +106,7 @@ def test_list_instruments(self): # data_files = eso.retrieve_data([data_product_id]) # # How do we know if we're going to get .fits or .fits.Z? # assert 'AMBER.2006-03-14T07:40:03.741.fits' in data_files[0] - + @pytest.mark.skipif('not Eso.USERNAME') def test_retrieve_data(self): eso = Eso()