Repository: climate Updated Branches: refs/heads/master 1e0763865 -> 8f3a16e2c
CLIMATE-830 Broken tests in dap.py Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/61545377 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/61545377 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/61545377 Branch: refs/heads/master Commit: 615453772cfac1b3fbe7f898b22cac53945c4111 Parents: 442a9b2 Author: Omkar20895 <[email protected]> Authored: Wed Jul 27 15:09:03 2016 +0530 Committer: Omkar20895 <[email protected]> Committed: Wed Jul 27 15:09:03 2016 +0530 ---------------------------------------------------------------------- ocw/tests/test_dap.py | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/61545377/ocw/tests/test_dap.py ---------------------------------------------------------------------- diff --git a/ocw/tests/test_dap.py b/ocw/tests/test_dap.py index 927477c..a895a27 100644 --- a/ocw/tests/test_dap.py +++ b/ocw/tests/test_dap.py @@ -30,6 +30,15 @@ class TestDap(unittest.TestCase): cls.name = 'foo' cls.dataset = dap.load(cls.url, 'CGusfc', name=cls.name) + # The tests fail for this dataset since the dataset does not have a time(1D) variable. + # The tests fail because dap.py assumes that the openDAP datasets necessarily have the + # three variables 1D variables lat, lon and time and the lines 53,54 and 55 are written + # on the same assumption. + cls.url2 = 'http://opendap-uat.jpl.nasa.gov/opendap/GeodeticsGravity/'\ + 'tellus/L3/mascon/RL05/JPL/CRI/netcdf/CLM4.SCALE_FACTOR.JPL.MSCNv01CRIv01.nc' + cls.name2 = 'foo2' + cls.dataset2 = dap.load(cls.url2, 'scale_factor', name=cls.name) + def test_dataset_is_returned(self): self.assertTrue(isinstance(self.dataset, Dataset))
