You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@climate.apache.org by "Lewis John McGibbney (JIRA)" <ji...@apache.org> on 2016/03/02 09:35:18 UTC
[jira] [Resolved] (CLIMATE-710) OCW Package Tests are Broken
[ https://issues.apache.org/jira/browse/CLIMATE-710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lewis John McGibbney resolved CLIMATE-710.
------------------------------------------
Resolution: Fixed
Assignee: Lewis John McGibbney
Thank you to both [~michael.arthur.anderson@gmail.com] and [~jarifibrahim] for providing fixes for the above. Great to have Climate testing successfully again :)
> OCW Package Tests are Broken
> ----------------------------
>
> Key: CLIMATE-710
> URL: https://issues.apache.org/jira/browse/CLIMATE-710
> Project: Apache Open Climate Workbench
> Issue Type: Bug
> Components: build process
> Affects Versions: 1.0.0
> Reporter: Michael Joyce
> Assignee: Lewis John McGibbney
> Priority: Blocker
> Fix For: 1.1
>
>
> The following tests are currently breaking in master for me. The DAP test is ignorable (it's the same old BS with it) but the other two are "new".
> {code}
> | -> nosetests
> E.................................................................................FF.F....................................
> ======================================================================
> ERROR: test suite for <class 'ocw.tests.test_dap.TestDap'>
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/nose/suite.py", line 208, in run
> self.setUp()
> File "/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp
> self.setupContext(ancestor)
> File "/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext
> try_run(context, names)
> File "/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/nose/util.py", line 470, in try_run
> return func()
> File "/Users/mjjoyce/Coding/Climate/github-climate/ocw/tests/test_dap.py", line 28, in setup_class
> self.dataset = dap.load(self.url, 'sst', name=self.name)
> File "/Users/mjjoyce/Coding/Climate/github-climate/ocw/data_source/dap.py", line 42, in load
> d = open_url(url)
> File "/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/pydap/client.py", line 60, in open_url
> dataset = response(url)
> File "/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/pydap/client.py", line 206, in _ddsdas
> respdds, dds = request(ddsurl)
> File "/Users/mjjoyce/anaconda/envs/OCW/lib/python2.7/site-packages/pydap/util/http.py", line 50, in request
> raise ServerError(msg)
> ServerError: 'Server error 1: "Cannot locate resource: http://test.opendap.org/opendap/hyrax/data/nc/sst.mnmean.nc.gz.dds"'
> -------------------- >> begin captured logging << --------------------
> pydap: INFO: Opening http://test.opendap.org/dap/data/nc/sst.mnmean.nc.gz.dds
> --------------------- >> end captured logging << ---------------------
> ======================================================================
> FAIL: To test load_file function for latitudes
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/Users/mjjoyce/Coding/Climate/github-climate/ocw/tests/test_local.py", line 48, in test_function_load_file_lats
> self.assertItemsEqual(local.load_file(self.file_path, "value").lats, self.latitudes)
> AssertionError: Element counts were not equal:
> First has 0, Second has 0: masked
> First has 0, Second has 0: masked
> First has 0, Second has 0: masked
> First has 0, Second has 0: masked
> First has 0, Second has 0: masked
> ======================================================================
> FAIL: To test load_file function for longitudes
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/Users/mjjoyce/Coding/Climate/github-climate/ocw/tests/test_local.py", line 53, in test_function_load_file_lons
> self.assertItemsEqual(local.load_file(self.file_path, "value").lons, self.longitudes)
> AssertionError: Element counts were not equal:
> First has 0, Second has 0: masked
> First has 0, Second has 0: masked
> First has 0, Second has 0: masked
> First has 0, Second has 0: masked
> First has 0, Second has 0: masked
> ======================================================================
> FAIL: To test load_file function for values
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/Users/mjjoyce/Coding/Climate/github-climate/ocw/tests/test_local.py", line 65, in test_function_load_file_values
> self.assertTrue(numpy.allclose(local.load_file(self.file_path, "value").values, new_values))
> AssertionError: masked is not true
> ----------------------------------------------------------------------
> Ran 121 tests in 96.465s
> FAILED (errors=1, failures=3)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)