Created
June 21, 2016 09:31
-
-
Save MSeifert04/b2aef84e761c532bc8b747b01d13f392 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================= test session starts ============================= | |
platform win32 -- Python 2.7.11, pytest-2.8.3, py-1.4.30, pluggy-0.3.1 | |
benchmark: 3.0.0 (defaults: timer=time.clock disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) | |
Running tests with astroquery version 0.3.3.dev3307. | |
Running tests in lib.win-amd64-2.7\astroquery docs. | |
Date: 2016-06-21T11:29:25 | |
Platform: Windows-10-10.0.10586 | |
Executable: C:\Programming\Anaconda\envs\work27\python.exe | |
Full Python Version: | |
2.7.11 |Continuum Analytics, Inc.| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] | |
encodings: sys: ascii, locale: cp1252, filesystem: mbcs, unicode bits: 15 | |
byteorder: little | |
float info: dig: 15, mant_dig: 15 | |
Numpy: 1.11.0 | |
Matplotlib: 1.5.1 | |
Pandas: 0.18.1 | |
Astropy: 1.2.dev15746 | |
APLpy: not available | |
pyregion: not available | |
rootdir: c:\users\admin\appdata\local\temp\astroquery-test-brooai, inifile: setup.cfg | |
plugins: benchmark-3.0.0, pep8-1.0.6, cov-2.2.1 | |
collected 780 items | |
astroquery\alfalfa\tests\test_alfalfa.py ... | |
astroquery\alma\tests\test_alma.py .F.... | |
astroquery\alma\tests\test_alma_remote.py ssssssss | |
astroquery\alma\tests\test_alma_utils.py s.s | |
astroquery\atomic\tests\test_atomic.py .... | |
astroquery\atomic\tests\test_atomic_remote.py ssss | |
astroquery\besancon\tests\test_besancon.py .... | |
astroquery\data\README.rst . | |
astroquery\eso\tests\test_eso.py .. | |
astroquery\eso\tests\test_eso_remote.py sssssssssssssssssssssssssssssss | |
astroquery\fermi\tests\test_fermi.py .... | |
astroquery\gama\tests\test_gama.py F. | |
astroquery\gama\tests\test_gama_remote.py ss | |
astroquery\heasarc\tests\test_heasarc_remote.py s | |
astroquery\ibe\tests\test_ibe.py ...FFF | |
astroquery\ibe\tests\test_ibe_remote.py ss | |
astroquery\irsa\tests\test_irsa.py ............................. | |
astroquery\irsa\tests\test_irsa_remote.py ssssss | |
astroquery\irsa_dust\tests\test_irsa_dust.py .................................................................. | |
astroquery\irsa_dust\tests\test_irsa_dust_remote.py ssssssssssssssssssssssssssssssssssssssssss | |
astroquery\lamda\tests\test_lamda.py . | |
astroquery\lamda\tests\test_lamda_remote.py s | |
astroquery\lcogt\tests\test_lcogt.py ............................. | |
astroquery\lcogt\tests\test_lcogt_remote.py ssssssss | |
astroquery\magpis\tests\test_magpis.py ...x | |
astroquery\magpis\tests\test_magpis_remote.py ss | |
astroquery\nasa_ads\tests\test_nasaads.py s | |
astroquery\ned\tests\test_ned.py .......................... | |
astroquery\ned\tests\test_ned_remote.py ssssssssssssssssssss | |
astroquery\nist\tests\test_nist.py ... | |
astroquery\nist\tests\test_nist_remote.py ss | |
astroquery\nrao\tests\test_nrao.py .. | |
astroquery\nrao\tests\test_nrao_remote.py ss | |
astroquery\nvas\tests\test_nvas.py ........ | |
astroquery\nvas\tests\test_nvas_remote.py sss | |
astroquery\ogle\tests\test_ogle.py ... | |
astroquery\open_exoplanet_catalogue\utils.py .. | |
astroquery\open_exoplanet_catalogue\tests\test_open_exoplanet_catalogue_local.py . | |
astroquery\open_exoplanet_catalogue\tests\test_open_exoplanet_catalogue_remote.py s | |
astroquery\sdss\tests\test_sdss.py .............................................................................................................................FFFFFFFFFFF....................... | |
astroquery\sdss\tests\test_sdss_remote.py ssssssssssssssss | |
astroquery\sha\tests\test_sha.py ..... | |
astroquery\simbad\core.py .... | |
astroquery\simbad\tests\test_simbad.py ..............F........FF.F.F.F....FFFF.FF..FF...FF....F | |
astroquery\simbad\tests\test_simbad_remote.py sssssssssssssssssssssssss | |
astroquery\skyview\tests\test_skyview.py .. | |
astroquery\skyview\tests\test_skyview_remote.py sssssssssssssssssssss | |
astroquery\splatalogue\tests\test_splatalogue.py .........s | |
astroquery\splatalogue\tests\test_utils.py ... | |
astroquery\template_module\tests\test_module.py . | |
astroquery\template_module\tests\test_module_remote.py s | |
astroquery\tests\test_internet.py s | |
astroquery\ukidss\tests\test_ukidss.py ........... | |
astroquery\ukidss\tests\test_ukidss_remote.py ssssss | |
astroquery\utils\commons.py . | |
astroquery\utils\url_helpers.py F | |
astroquery\utils\tests\test_url_helpers.py . | |
astroquery\utils\tests\test_utils.py s..ss..............F... | |
astroquery\vizier\tests\test_vizier.py ............................ | |
astroquery\vizier\tests\test_vizier_remote.py ssssssssssssss | |
astroquery\xmatch\tests\test_xmatch.py ..... | |
astroquery\xmatch\tests\test_xmatch_remote.py ssss | |
..\docs\api.rst . | |
..\docs\gallery.rst . | |
..\docs\index.rst . | |
..\docs\query.rst . | |
..\docs\release_notice_v0.2.rst . | |
..\docs\template.rst . | |
..\docs\testing.rst . | |
..\docs\utils.rst . | |
..\docs\alfalfa\alfalfa.rst . | |
..\docs\alma\alma.rst . | |
..\docs\atomic\atomic.rst . | |
..\docs\besancon\besancon.rst . | |
..\docs\cosmosim\cosmosim.rst . | |
..\docs\eso\eso.rst . | |
..\docs\fermi\fermi.rst . | |
..\docs\gama\gama.rst . | |
..\docs\heasarc\heasarc.rst . | |
..\docs\ibe\ibe.rst . | |
..\docs\irsa\irsa.rst . | |
..\docs\irsa\irsa_dust.rst . | |
..\docs\lamda\lamda.rst . | |
..\docs\magpis\magpis.rst . | |
..\docs\nasa_ads\nasa_ads.rst . | |
..\docs\ned\ned.rst . | |
..\docs\nist\nist.rst . | |
..\docs\nrao\nrao.rst . | |
..\docs\nvas\nvas.rst . | |
..\docs\ogle\ogle.rst . | |
..\docs\open_exoplanet_catalogue\open_exoplanet_catalogue.rst . | |
..\docs\sdss\sdss.rst . | |
..\docs\sha\sha.rst . | |
..\docs\simbad\simbad.rst . | |
..\docs\skyview\skyview.rst . | |
..\docs\splatalogue\splatalogue.rst . | |
..\docs\ukidss\ukidss.rst . | |
..\docs\vizier\vizier.rst . | |
..\docs\xmatch\xmatch.rst . | |
================================== FAILURES =================================== | |
________________________________ test_staging _________________________________ | |
monkeypatch = <_pytest.monkeypatch.monkeypatch instance at 0x0000000008BF55C8> | |
def test_staging(monkeypatch): | |
monkeypatch.setattr(Alma, '_get_dataarchive_url', _get_dataarchive_url) | |
alma = Alma() | |
alma.dataarchive_url = _get_dataarchive_url() | |
monkeypatch.setattr(alma, '_get_dataarchive_url', _get_dataarchive_url) | |
monkeypatch.setattr(alma, '_request', alma_request) | |
target = 'NGC4945' | |
project_code = '2011.0.00121.S' | |
payload = {'project_code': project_code, | |
'source_name_resolver': target} | |
result = alma.query(payload=payload) | |
> uid_url_table = alma.stage_data(result['Asdm uid']) | |
astroquery\alma\tests\test_alma.py:117: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery\alma\core.py:268: in stage_data | |
staging_submission = self._request('GET', submission_url, cache=True) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
request_type = 'GET' | |
url = 'http://almascience.eso.org/rh/submission\\d45d0552-8479-4482-9833-fecdef3f8b90' | |
params = None, payload = None, data = None, kwargs = {'cache': True} | |
def alma_request(request_type, url, params=None, payload=None, data=None, | |
**kwargs): | |
> if isinstance(DATA_FILES[request_type][url], dict): | |
E KeyError: 'http://almascience.eso.org/rh/submission\\d45d0552-8479-4482-9833-fecdef3f8b90' | |
astroquery\alma\tests\test_alma.py:59: KeyError | |
---------------------------- Captured stdout call ----------------------------- | |
INFO: Staging files... [astroquery.alma.core] | |
____________________________ test_GAMA_find_result ____________________________ | |
def test_GAMA_find_result(): | |
"""Tests that the URL of the data is correctly found.""" | |
with open(data_path(DATA_FILES["html_page"])) as f_html: | |
result_page = f_html.read() | |
url = gama.core.find_data_url(result_page) | |
expected_url = os.path.join("../tmp", DATA_FILES["fits_data"]) | |
> assert url == expected_url | |
E assert '../tmp/GAMA_HzVs28.fits' == '../tmp\\GAMA_HzVs28.fits' | |
E - ../tmp/GAMA_HzVs28.fits | |
E ? ^ | |
E + ../tmp\\GAMA_HzVs28.fits | |
E ? ^^ | |
astroquery\gama\tests\test_gama.py:23: AssertionError | |
______________________________ test_get_columns _______________________________ | |
patch_get = <_pytest.monkeypatch.monkeypatch instance at 0x00000000076FDB48> | |
def test_get_columns(patch_get): | |
> columns = Ibe.get_columns('ptf', 'images', 'level1') | |
astroquery\ibe\tests\test_ibe.py:76: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery\ibe\core.py:415: in get_columns | |
'GET', url, {'FORMAT': 'METADATA'}, timeout=self.TIMEOUT) | |
astroquery\query.py:178: in _request | |
auth=auth) | |
astroquery\query.py:56: in request | |
stream=stream, auth=auth) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.sessions.Session object at 0x00000000082E1CC0>, method = 'GET' | |
url = 'http://irsa.ipac.caltech.edu/ibe/search\ptf\images\level1' | |
params = {'FORMAT': 'METADATA'}, data = None, headers = None, cookies = None | |
files = None, auth = None, timeout = 60, allow_redirects = True, proxies = None | |
hooks = None, stream = False, verify = None, cert = None, json = None | |
def get_mockreturn(self, method, url, | |
params=None, | |
data=None, | |
headers=None, | |
cookies=None, | |
files=None, | |
auth=None, | |
timeout=None, | |
allow_redirects=True, | |
proxies=None, | |
hooks=None, | |
stream=None, | |
verify=None, | |
cert=None, | |
json=None): | |
filename = data_path(DATA_FILES[(url, | |
> params and frozenset(params.items()))]) | |
E KeyError: (u'http://irsa.ipac.caltech.edu/ibe/search\\ptf\\images\\level1', frozenset([('FORMAT', 'METADATA')])) | |
astroquery\ibe\tests\test_ibe.py:57: KeyError | |
________________________________ test_ibe_pos _________________________________ | |
patch_get = <_pytest.monkeypatch.monkeypatch instance at 0x0000000008C61288> | |
def test_ibe_pos(patch_get): | |
table = Ibe.query_region( | |
SkyCoord(148.969687 * u.deg, 69.679383 * u.deg), | |
> where='expid <= 43010') | |
astroquery\ibe\tests\test_ibe.py:84: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery\ibe\core.py:103: in query_region | |
height=height, intersect=intersect, most_centered=most_centered) | |
astroquery\ibe\core.py:253: in query_region_async | |
return self._request('GET', url, args, timeout=self.TIMEOUT) | |
astroquery\query.py:178: in _request | |
auth=auth) | |
astroquery\query.py:56: in request | |
stream=stream, auth=auth) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.sessions.Session object at 0x00000000082E1CC0>, method = 'GET' | |
url = 'http://irsa.ipac.caltech.edu/ibe/search\ptf\images\level1' | |
params = {'INTERSECT': 'OVERLAPS', 'POS': '148.969687,69.679383', 'where': 'expid <= 43010'} | |
data = None, headers = None, cookies = None, files = None, auth = None | |
timeout = 60, allow_redirects = True, proxies = None, hooks = None | |
stream = False, verify = None, cert = None, json = None | |
def get_mockreturn(self, method, url, | |
params=None, | |
data=None, | |
headers=None, | |
cookies=None, | |
files=None, | |
auth=None, | |
timeout=None, | |
allow_redirects=True, | |
proxies=None, | |
hooks=None, | |
stream=None, | |
verify=None, | |
cert=None, | |
json=None): | |
filename = data_path(DATA_FILES[(url, | |
> params and frozenset(params.items()))]) | |
E KeyError: (u'http://irsa.ipac.caltech.edu/ibe/search\\ptf\\images\\level1', frozenset([('INTERSECT', 'OVERLAPS'), ('where', 'expid <= 43010'), ('POS', '148.969687,69.679383')])) | |
astroquery\ibe\tests\test_ibe.py:57: KeyError | |
______________________________ test_ibe_field_id ______________________________ | |
patch_get = <_pytest.monkeypatch.monkeypatch instance at 0x00000000088AB708> | |
def test_ibe_field_id(patch_get): | |
table = Ibe.query_region( | |
> where="ptffield = 4808 and filter='R'") | |
astroquery\ibe\tests\test_ibe.py:91: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
astroquery\ibe\core.py:103: in query_region | |
height=height, intersect=intersect, most_centered=most_centered) | |
astroquery\ibe\core.py:253: in query_region_async | |
return self._request('GET', url, args, timeout=self.TIMEOUT) | |
astroquery\query.py:178: in _request | |
auth=auth) | |
astroquery\query.py:56: in request | |
stream=stream, auth=auth) | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <requests.sessions.Session object at 0x00000000082E1CC0>, method = 'GET' | |
url = 'http://irsa.ipac.caltech.edu/ibe/search\ptf\images\level1' | |
params = {'INTERSECT': 'OVERLAPS', 'where': "ptffield = 4808 and filter='R'"} | |
data = None, headers = None, cookies = None, files = None, auth = None | |
timeout = 60, allow_redirects = True, proxies = None, hooks = None | |
stream = False, verify = None, cert = None, json = None | |
def get_mockreturn(self, method, url, | |
params=None, | |
data=None, | |
headers=None, | |
cookies=None, | |
files=None, | |
auth=None, | |
timeout=None, | |
allow_redirects=True, | |
proxies=None, | |
hooks=None, | |
stream=None, | |
verify=None, | |
cert=None, | |
json=None): | |
filename = data_path(DATA_FILES[(url, | |
> params and frozenset(params.items()))]) | |
E KeyError: (u'http://irsa.ipac.caltech.edu/ibe/search\\ptf\\images\\level1', frozenset([('INTERSECT', 'OVERLAPS'), ('where', "ptffield = 4808 and filter='R'")])) | |
astroquery\ibe\tests\test_ibe.py:57: KeyError | |
____________________________ test_query_crossid[1] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C3E40C8> | |
dr = 1 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
____________________________ test_query_crossid[2] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C3AFB08> | |
dr = 2 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
____________________________ test_query_crossid[3] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C3AFE08> | |
dr = 3 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
____________________________ test_query_crossid[4] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C450DC8> | |
dr = 4 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
____________________________ test_query_crossid[5] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C463708> | |
dr = 5 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
____________________________ test_query_crossid[6] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C406608> | |
dr = 6 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
____________________________ test_query_crossid[7] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C411B48> | |
dr = 7 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
____________________________ test_query_crossid[8] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C486448> | |
dr = 8 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
____________________________ test_query_crossid[9] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000875FB88> | |
dr = 9 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
___________________________ test_query_crossid[10] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C455A48> | |
dr = 10 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
___________________________ test_query_crossid[12] ____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C4B4E88> | |
dr = 12 | |
@pytest.mark.parametrize("dr", [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]) | |
def test_query_crossid(patch_post, dr): | |
xid = sdss.SDSS.query_crossid(coords_column, data_release=dr) | |
data = Table.read(data_path(DATA_FILES['images_id']), | |
format='ascii.csv', comment='#') | |
> assert all(xid == data) | |
E TypeError: 'bool' object is not iterable | |
astroquery\sdss\tests\test_sdss.py:281: TypeError | |
______________________________ test_parse_result ______________________________ | |
def test_parse_result(): | |
result1 = simbad.core.Simbad._parse_result( | |
MockResponseSimbad('query id '), simbad.core.SimbadVOTableResult) | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:114: AssertionError | |
__________________________ test_query_bibcode_class ___________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C4954C8> | |
def test_query_bibcode_class(patch_post): | |
result1 = simbad.core.Simbad.query_bibcode("2006ApJ*", wildcard=True) | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:182: AssertionError | |
_________________________ test_query_bibcode_instance _________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C509188> | |
def test_query_bibcode_instance(patch_post): | |
S = simbad.core.Simbad() | |
result2 = S.query_bibcode("2006ApJ*", wildcard=True) | |
> assert isinstance(result2, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:188: AssertionError | |
____________________________ test_query_objectids _____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C509388> | |
def test_query_objectids(patch_post): | |
result1 = simbad.core.Simbad.query_objectids('Polaris') | |
result2 = simbad.core.Simbad().query_objectids('Polaris') | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:201: AssertionError | |
______________________________ test_query_bibobj ______________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C4C1108> | |
def test_query_bibobj(patch_post): | |
result1 = simbad.core.Simbad.query_bibobj('2005A&A.430.165F') | |
result2 = simbad.core.Simbad().query_bibobj('2005A&A.430.165F') | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:215: AssertionError | |
_____________________________ test_query_catalog ______________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C53AF88> | |
def test_query_catalog(patch_post): | |
result1 = simbad.core.Simbad.query_catalog('m') | |
result2 = simbad.core.Simbad().query_catalog('m') | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:229: AssertionError | |
_______________ test_query_region[coordinates0-None-None-None] ________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C619DC8> | |
coordinates = <SkyCoord (ICRS): (ra, dec) in deg | |
(83.82208333, -80.86666667)> | |
radius = None, equinox = None, epoch = None | |
@pytest.mark.parametrize(('coordinates', 'radius', 'equinox', 'epoch'), | |
[(ICRS_COORDS, None, None, None), | |
(GALACTIC_COORDS, 5 * u.deg, 2000.0, 'J2000'), | |
(FK4_COORDS, '5d0m0s', None, None), | |
(FK5_COORDS, None, None, None) | |
]) | |
def test_query_region(patch_post, coordinates, radius, equinox, epoch): | |
result1 = simbad.core.Simbad.query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
result2 = simbad.core.Simbad().query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:261: AssertionError | |
____________ test_query_region[coordinates1-radius1-2000.0-J2000] _____________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C4BFDC8> | |
coordinates = <SkyCoord (Galactic): (l, b) in deg | |
(292.97916, -29.75447)> | |
radius = <Quantity 5.0 deg>, equinox = 2000.0, epoch = 'J2000' | |
@pytest.mark.parametrize(('coordinates', 'radius', 'equinox', 'epoch'), | |
[(ICRS_COORDS, None, None, None), | |
(GALACTIC_COORDS, 5 * u.deg, 2000.0, 'J2000'), | |
(FK4_COORDS, '5d0m0s', None, None), | |
(FK5_COORDS, None, None, None) | |
]) | |
def test_query_region(patch_post, coordinates, radius, equinox, epoch): | |
result1 = simbad.core.Simbad.query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
result2 = simbad.core.Simbad().query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:261: AssertionError | |
______________ test_query_region[coordinates2-5d0m0s-None-None] _______________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C5FF048> | |
coordinates = <SkyCoord (FK4: equinox=B1950.000, obstime=B1950.000): (ra, dec) in deg | |
(84.90759, -80.89403)> | |
radius = '5d0m0s', equinox = None, epoch = None | |
@pytest.mark.parametrize(('coordinates', 'radius', 'equinox', 'epoch'), | |
[(ICRS_COORDS, None, None, None), | |
(GALACTIC_COORDS, 5 * u.deg, 2000.0, 'J2000'), | |
(FK4_COORDS, '5d0m0s', None, None), | |
(FK5_COORDS, None, None, None) | |
]) | |
def test_query_region(patch_post, coordinates, radius, equinox, epoch): | |
result1 = simbad.core.Simbad.query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
result2 = simbad.core.Simbad().query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:261: AssertionError | |
_______________ test_query_region[coordinates3-None-None-None] ________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C53AE08> | |
coordinates = <SkyCoord (FK5: equinox=J2000.000): (ra, dec) in deg | |
(83.82207, -80.86667)> | |
radius = None, equinox = None, epoch = None | |
@pytest.mark.parametrize(('coordinates', 'radius', 'equinox', 'epoch'), | |
[(ICRS_COORDS, None, None, None), | |
(GALACTIC_COORDS, 5 * u.deg, 2000.0, 'J2000'), | |
(FK4_COORDS, '5d0m0s', None, None), | |
(FK5_COORDS, None, None, None) | |
]) | |
def test_query_region(patch_post, coordinates, radius, equinox, epoch): | |
result1 = simbad.core.Simbad.query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
result2 = simbad.core.Simbad().query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:261: AssertionError | |
__________ test_query_region_small_radius[coordinates0-0d-None-None] __________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C5F5088> | |
coordinates = <SkyCoord (ICRS): (ra, dec) in deg | |
(83.82208333, -80.86666667)> | |
radius = '0d', equinox = None, epoch = None | |
@pytest.mark.parametrize(('coordinates', 'radius', 'equinox', 'epoch'), | |
[(ICRS_COORDS, "0d", None, None), | |
(GALACTIC_COORDS, 1.0 * u.marcsec, 2000.0, 'J2000') | |
]) | |
def test_query_region_small_radius(patch_post, coordinates, radius, | |
equinox, epoch): | |
result1 = simbad.core.Simbad.query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
result2 = simbad.core.Simbad().query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:288: AssertionError | |
______ test_query_region_small_radius[coordinates1-radius1-2000.0-J2000] ______ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C4D87C8> | |
coordinates = <SkyCoord (Galactic): (l, b) in deg | |
(292.97916, -29.75447)> | |
radius = <Quantity 1.0 marcsec>, equinox = 2000.0, epoch = 'J2000' | |
@pytest.mark.parametrize(('coordinates', 'radius', 'equinox', 'epoch'), | |
[(ICRS_COORDS, "0d", None, None), | |
(GALACTIC_COORDS, 1.0 * u.marcsec, 2000.0, 'J2000') | |
]) | |
def test_query_region_small_radius(patch_post, coordinates, radius, | |
equinox, epoch): | |
result1 = simbad.core.Simbad.query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
result2 = simbad.core.Simbad().query_region(coordinates, radius=radius, | |
equinox=equinox, epoch=epoch) | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:288: AssertionError | |
_________________________ test_query_object[m1-None] __________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C4D5AC8> | |
object_name = 'm1', wildcard = None | |
@pytest.mark.parametrize(('object_name', 'wildcard'), | |
[("m1", None), | |
("m [0-9]", True), | |
]) | |
def test_query_object(patch_post, object_name, wildcard): | |
result1 = simbad.core.Simbad.query_object(object_name, | |
wildcard=wildcard) | |
result2 = simbad.core.Simbad().query_object(object_name, | |
wildcard=wildcard) | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:314: AssertionError | |
_______________________ test_query_object[m [0-9]-True] _______________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C619FC8> | |
object_name = 'm [0-9]', wildcard = True | |
@pytest.mark.parametrize(('object_name', 'wildcard'), | |
[("m1", None), | |
("m [0-9]", True), | |
]) | |
def test_query_object(patch_post, object_name, wildcard): | |
result1 = simbad.core.Simbad.query_object(object_name, | |
wildcard=wildcard) | |
result2 = simbad.core.Simbad().query_object(object_name, | |
wildcard=wildcard) | |
> assert isinstance(result1, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:314: AssertionError | |
____________________________ test_query_criteria1 _____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C62EF88> | |
def test_query_criteria1(patch_post): | |
result = simbad.core.Simbad.query_criteria( | |
"region(box, GAL, 49.89 -0.3, 0.5d 0.5d)", otype='HII') | |
> assert isinstance(result, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:356: AssertionError | |
____________________________ test_query_criteria2 _____________________________ | |
patch_post = <_pytest.monkeypatch.monkeypatch instance at 0x000000000C4E32C8> | |
def test_query_criteria2(patch_post): | |
S = simbad.core.Simbad() | |
S.add_votable_fields('ra(d)', 'dec(d)') | |
S.remove_votable_fields('coordinates') | |
assert S.get_votable_fields() == ['main_id', 'ra(d)', 'dec(d)'] | |
result = S.query_criteria(otype='SNR') | |
> assert isinstance(result, Table) | |
E assert isinstance(None, Table) | |
astroquery\simbad\tests\test_simbad.py:365: AssertionError | |
__________________________ test_regression_issue388 ___________________________ | |
def test_regression_issue388(): | |
# This is a python-3 issue: content needs to be decoded? | |
response = MockResponseSimbad('\nvotable {main_id,coordinates}\nvotable ' | |
'open\nquery id m1 \nvotable close') | |
with open(data_path('m1.data'), "rb") as f: | |
response.content = f.read() | |
parsed_table = simbad.Simbad._parse_result(response, | |
simbad.core.SimbadVOTableResult) | |
> assert parsed_table['MAIN_ID'][0] == b'M 1' | |
E TypeError: 'NoneType' object has no attribute '__getitem__' | |
astroquery\simbad\tests\test_simbad.py:419: TypeError | |
__________ [doctest] astroquery.utils.url_helpers.urljoin_keep_path ___________ | |
010 """Join a base URL and a relative or absolute path. The important | |
011 difference to :func:`urlparse.urljoin` (or | |
012 :func:`urllib.parse.urljoin` on Python 3) is that `urljoin_keep_path` | |
013 does not remove the last directory of the path found in the parameter | |
014 `url` if it is in relative form. Compare the examples below to verify. | |
015 | |
016 Examples | |
017 -------- | |
018 >>> urljoin_keep_path('http://example.com/foo', 'bar') | |
Expected: | |
'http://example.com/foo/bar' | |
Got: | |
'http://example.com/foo\\bar' | |
astroquery\utils\url_helpers.py:18: DocTestFailure | |
___________________________ test_filecontainer_save ___________________________ | |
patch_getreadablefileobj = None | |
def test_filecontainer_save(patch_getreadablefileobj): | |
ffile = commons.FileContainer(fitsfilepath, encoding='binary') | |
temp_dir = tempfile.mkdtemp() | |
empty_temp_file = temp_dir + os.sep + 'test_emptyfile.fits' | |
try: | |
ffile.save_fits(empty_temp_file) | |
assert os.path.exists(empty_temp_file) | |
finally: | |
> os.remove(empty_temp_file) | |
E WindowsError: [Error 2] Das System kann die angegebene Datei nicht finden: 'c:\\users\\admin\\appdata\\local\\temp\\tmpupbqmv\\test_emptyfile.fits' | |
astroquery\utils\tests\test_utils.py:421: WindowsError | |
---------------------------- Captured stdout call ----------------------------- | |
Downloading c:\users\admin\appdata\local\temp\astroquery-test-brooai\lib.win-amd64-2.7\astroquery\utils\tests\../../sdss/tests/data/emptyfile.fits [Done] | |
======= 35 failed, 514 passed, 230 skipped, 1 xfailed in 97.18 seconds ======== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment