You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2014/03/02 07:47:37 UTC
svn commit: r1573262 -
/incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py
Author: joyce
Date: Sun Mar 2 06:47:36 2014
New Revision: 1573262
URL: http://svn.apache.org/r1573262
Log:
Reverting accidentally committed debug code
Modified:
incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py
Modified: incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py?rev=1573262&r1=1573261&r2=1573262&view=diff
==============================================================================
--- incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py (original)
+++ incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py Sun Mar 2 06:47:36 2014
@@ -268,12 +268,12 @@ class TestRunEvaluation(unittest.TestCas
if not os.path.exists('d2.nc'):
urlretrieve(FILE_LEADER + FILE_2, 'd2.nc')
- #@classmethod
- #def tearDownClass(self):
- #if os.path.exists('d1.nc'):
- #os.remove('d1.nc')
- #if os.path.exists('d2.nc'):
- #os.remove('d2.nc')
+ @classmethod
+ def tearDownClass(self):
+ if os.path.exists('d1.nc'):
+ os.remove('d1.nc')
+ if os.path.exists('d2.nc'):
+ os.remove('d2.nc')
def test_full_evaluation(self):
data = {
@@ -304,7 +304,6 @@ class TestRunEvaluation(unittest.TestCas
'temporal_resolution': 365,
'metrics': ['Bias'],
'start_time': '1989-01-01 00:00:00',
- #'end_time': '2008-01-01 00:00:00',
'end_time': '1991-01-01 00:00:00',
'lat_min': -25.0,
'lat_max': 22.0,
@@ -315,8 +314,7 @@ class TestRunEvaluation(unittest.TestCas
# NOTE: Sometimes the file download will die if you use the this WebTest
# call for testing. If that is the case, download the files manually with wget.
- #test_app.post_json('/processing/run_evaluation/', data)
- bp.run_evaluation(data)
+ test_app.post_json('/processing/run_evaluation/', data)
result_dirs = [x for x in os.listdir(WORK_DIR)
if os.path.isdir(os.path.join(WORK_DIR, x))]