Michael Joyce created CLIMATE-710:
-------------------------------------

             Summary: 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
            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)

Reply via email to