You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by le...@apache.org on 2016/02/05 09:10:29 UTC

climate git commit: CLIMATE-757 Fix ERROR: test suite for

Repository: climate
Updated Branches:
  refs/heads/master eb9d33dfb -> 4c4ff7c70


CLIMATE-757 Fix ERROR: test suite for <class 'ocw.tests.test_dap.TestDap'>


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/4c4ff7c7
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/4c4ff7c7
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/4c4ff7c7

Branch: refs/heads/master
Commit: 4c4ff7c70fcdf385d4bcd0a7f8a23bbbab016b3c
Parents: eb9d33d
Author: Lewis John McGibbney <le...@jpl.nasa.gov>
Authored: Fri Feb 5 00:11:17 2016 -0800
Committer: Lewis John McGibbney <le...@jpl.nasa.gov>
Committed: Fri Feb 5 00:11:17 2016 -0800

----------------------------------------------------------------------
 ocw/data_source/dap.py | 2 +-
 ocw/tests/test_dap.py  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/4c4ff7c7/ocw/data_source/dap.py
----------------------------------------------------------------------
diff --git a/ocw/data_source/dap.py b/ocw/data_source/dap.py
index f5f9b40..7b6e216 100644
--- a/ocw/data_source/dap.py
+++ b/ocw/data_source/dap.py
@@ -70,7 +70,7 @@ def load(url, variable, name=''):
 def _convert_times_to_datetime(time):
     '''Convert the OpenDAP time object's values to datetime objects
 
-    The time values are stores as some unit since an epoch. These need to be 
+    The time values are stored as some unit since an epoch. These need to be
     converted into datetime objects for the OCW Dataset object.
 
     :param time: The time object's values to convert

http://git-wip-us.apache.org/repos/asf/climate/blob/4c4ff7c7/ocw/tests/test_dap.py
----------------------------------------------------------------------
diff --git a/ocw/tests/test_dap.py b/ocw/tests/test_dap.py
index db0d4c0..6f9d311 100644
--- a/ocw/tests/test_dap.py
+++ b/ocw/tests/test_dap.py
@@ -23,9 +23,9 @@ import datetime as dt
 class TestDap(unittest.TestCase):
     @classmethod
     def setup_class(self):
-        self.url = 'http://test.opendap.org/dap/data/nc/sst.mnmean.nc.gz'
+        self.url = 'http://test.opendap.org/opendap/data/ncml/agg/dated/CG2006158_120000h_usfc.nc'
         self.name = 'foo'
-        self.dataset = dap.load(self.url, 'sst', name=self.name)
+        self.dataset = dap.load(self.url, 'CGusfc', name=self.name)
 
     def test_dataset_is_returned(self):
         self.assertTrue(isinstance(self.dataset, Dataset))