Repository: climate Updated Branches: refs/heads/master 5c261c6dd -> da17b0e35
CLIMATE-774 - Fix failing tests - Add 'mock' to pip-dependencies - Fix file path in test_utils.py Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/f936bcab Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/f936bcab Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/f936bcab Branch: refs/heads/master Commit: f936bcab738407d2be591ed1972425b94383836e Parents: 37dd5a8 Author: Ibrahim <[email protected]> Authored: Mon Mar 28 22:43:37 2016 +0530 Committer: Ibrahim <[email protected]> Committed: Mon Mar 28 22:43:37 2016 +0530 ---------------------------------------------------------------------- easy-ocw/ocw-pip-dependencies.txt | 1 + ocw/tests/test_utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/f936bcab/easy-ocw/ocw-pip-dependencies.txt ---------------------------------------------------------------------- diff --git a/easy-ocw/ocw-pip-dependencies.txt b/easy-ocw/ocw-pip-dependencies.txt index 8773730..9337964 100644 --- a/easy-ocw/ocw-pip-dependencies.txt +++ b/easy-ocw/ocw-pip-dependencies.txt @@ -9,3 +9,4 @@ sphinx==1.2.1 sphinxcontrib-httpdomain==1.2.1 esgf-pyclient==0.1.2 python-dateutil==2.4.1 +mock==1.3.0 http://git-wip-us.apache.org/repos/asf/climate/blob/f936bcab/ocw/tests/test_utils.py ---------------------------------------------------------------------- diff --git a/ocw/tests/test_utils.py b/ocw/tests/test_utils.py index 36cf42f..c112771 100644 --- a/ocw/tests/test_utils.py +++ b/ocw/tests/test_utils.py @@ -28,7 +28,7 @@ from ocw.dataset import Dataset import ocw.utils as utils class TestDecodeTimes(unittest.TestCase): - test_model = '../ocw-ui/backend/tests/example_data/lat_lon_time.nc' + test_model = os.getcwd() + '/ocw-ui/backend/tests/example_data/lat_lon_time.nc' def setUp(self): self.netcdf = netCDF4.Dataset(os.path.abspath(self.test_model), mode='r')
