[ 
https://issues.apache.org/jira/browse/CLIMATE-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15214490#comment-15214490
 ] 

ASF GitHub Bot commented on CLIMATE-774:
----------------------------------------

GitHub user jarifibrahim opened a pull request:

    https://github.com/apache/climate/pull/322

    CLIMATE-774 - Fix failing tests

    - Add 'mock' to pip-dependencies
    - Fix file path in test_utils.py

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jarifibrahim/climate CLIMATE-774

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/climate/pull/322.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #322
    
----
commit f936bcab738407d2be591ed1972425b94383836e
Author: Ibrahim <jarifibra...@gmail.com>
Date:   2016-03-28T17:13:37Z

    CLIMATE-774 - Fix failing tests
    
    - Add 'mock' to pip-dependencies
    - Fix file path in test_utils.py

----


> Fix failing tests
> -----------------
>
>                 Key: CLIMATE-774
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-774
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>            Reporter: Ibrahim Jarif
>
> ======================================================================
> ERROR: test_proper_return_format (ocw.tests.test_utils.TestDecodeTimes)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/travis/build/jarifibrahim/climate/ocw/tests/test_utils.py", 
> line 34, in setUp
>     self.netcdf = netCDF4.Dataset(os.path.abspath(self.test_model), mode='r')
>   File "netCDF4/_netCDF4.pyx", line 1795, in 
> netCDF4._netCDF4.Dataset.__init__ (netCDF4/_netCDF4.c:12271)
> RuntimeError: No such file or directory
> ======================================================================
> ERROR: test_valid_time_processing (ocw.tests.test_utils.TestDecodeTimes)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/travis/build/jarifibrahim/climate/ocw/tests/test_utils.py", 
> line 34, in setUp
>     self.netcdf = netCDF4.Dataset(os.path.abspath(self.test_model), mode='r')
>   File "netCDF4/_netCDF4.pyx", line 1795, in 
> netCDF4._netCDF4.Dataset.__init__ (netCDF4/_netCDF4.c:12271)
> RuntimeError: No such file or directory
> ======================================================================
> ERROR: Failure: ImportError (No module named mock)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/travis/miniconda/lib/python2.7/site-packages/nose/loader.py", 
> line 414, in loadTestsFromName
>     addr.filename, addr.module)
>   File "/home/travis/miniconda/lib/python2.7/site-packages/nose/importer.py", 
> line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/home/travis/miniconda/lib/python2.7/site-packages/nose/importer.py", 
> line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File 
> "/home/travis/build/jarifibrahim/climate/ocw_config_runner/tests/test_config_parsing.py",
>  line 18, in <module>
>     from mock import patch
> ImportError: No module named mock
> ======================================================================
> ERROR: Failure: ImportError (No module named mock)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/travis/miniconda/lib/python2.7/site-packages/nose/loader.py", 
> line 414, in loadTestsFromName
>     addr.filename, addr.module)
>   File "/home/travis/miniconda/lib/python2.7/site-packages/nose/importer.py", 
> line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/home/travis/miniconda/lib/python2.7/site-packages/nose/importer.py", 
> line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File 
> "/home/travis/build/jarifibrahim/climate/ocw_config_runner/tests/test_config_writer.py",
>  line 18, in <module>
>     from mock import patch
> ImportError: No module named mock
> ======================================================================
> ERROR: Failure: ImportError (No module named mock)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/travis/miniconda/lib/python2.7/site-packages/nose/loader.py", 
> line 414, in loadTestsFromName
>     addr.filename, addr.module)
>   File "/home/travis/miniconda/lib/python2.7/site-packages/nose/importer.py", 
> line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/home/travis/miniconda/lib/python2.7/site-packages/nose/importer.py", 
> line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File 
> "/home/travis/build/jarifibrahim/climate/ocw_config_runner/tests/test_evaluation_creation.py",
>  line 18, in <module>
>     from mock import patch
> ImportError: No module named mock
> ----------------------------------------------------------------------
> Ran 131 tests in 14.459s
> FAILED (errors=5)



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

Reply via email to