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/02/27 11:31:18 UTC

[jira] [Updated] (CLIMATE-768) test_dap.py Tests Failing

     [ https://issues.apache.org/jira/browse/CLIMATE-768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lewis John McGibbney updated CLIMATE-768:
-----------------------------------------
    Assignee: Michael Anderson

> test_dap.py Tests Failing
> -------------------------
>
>                 Key: CLIMATE-768
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-768
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>            Reporter: Michael Anderson
>            Assignee: Michael Anderson
>            Priority: Trivial
>
> test_dap test cases are failing.
> 1.  Set up function not being called.  Rename set up function to follow standard naming convention.
> 2.  Expected results are not consistent with new test file.
> 3. Clean up Pylint in dap.py and test_dap.py.
> 4. Update dap.py to account for the convention of time / height / lat / lon.
> Family-Room-iMac:tests michaelanderson$ python test_dap.py
> FFF...F
> ======================================================================
> FAIL: test_correct_lat_shape (__main__.TestDap)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "test_dap.py", line 34, in test_correct_lat_shape
>     self.assertEquals(len(self.dataset.lats), 89)
> AssertionError: 29 != 89
> ======================================================================
> FAIL: test_correct_lon_shape (__main__.TestDap)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "test_dap.py", line 37, in test_correct_lon_shape
>     self.assertEquals(len(self.dataset.lons), 180)
> AssertionError: 26 != 180
> ======================================================================
> FAIL: test_correct_time_shape (__main__.TestDap)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "test_dap.py", line 40, in test_correct_time_shape
>     self.assertEquals(len(self.dataset.times), 1857)
> AssertionError: 1 != 1857
> ======================================================================
> FAIL: test_valid_date_conversion (__main__.TestDap)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "test_dap.py", line 44, in test_valid_date_conversion
>     self.assertTrue(start == self.dataset.times[0])
> AssertionError: False is not true
> ----------------------------------------------------------------------
> Ran 7 tests in 3.264s
> FAILED (failures=4)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)