climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject [4/8] git commit: CLIMATE-416 - Remove Unary metric load from processing test
Date Sat, 10 May 2014 19:13:51 GMT
CLIMATE-416 - Remove Unary metric load from processing test

- At the moment, all Unary metrics are excluded from the UI. The metric
  load test was attempting to load a unary metric which was causing it
  to fail. The test is now done with only binary metric(s).


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

Branch: refs/heads/master
Commit: 7926286a101a8e45532b233e0820df3601e1ed35
Parents: 829c95d
Author: Michael Joyce <joyce@apache.org>
Authored: Fri May 9 11:31:43 2014 -0700
Committer: Michael Joyce <joyce@apache.org>
Committed: Fri May 9 11:31:43 2014 -0700

----------------------------------------------------------------------
 ocw-ui/backend/tests/test_processing.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/7926286a/ocw-ui/backend/tests/test_processing.py
----------------------------------------------------------------------
diff --git a/ocw-ui/backend/tests/test_processing.py b/ocw-ui/backend/tests/test_processing.py
index 74447c4..c1e4622 100644
--- a/ocw-ui/backend/tests/test_processing.py
+++ b/ocw-ui/backend/tests/test_processing.py
@@ -97,9 +97,8 @@ class TestMetricLoad(unittest.TestCase):
         self.assertTrue(isinstance(bias, metrics.Bias))
 
     def test_valid_metric_load(self):
-        metric_objs = bp._load_metrics(['Bias', 'TemporalStdDev'])
+        metric_objs = bp._load_metrics(['Bias'])
         self.assertTrue(isinstance(metric_objs[0], metrics.Bias))
-        self.assertTrue(isinstance(metric_objs[1], metrics.TemporalStdDev))
 
     def test_invalid_metric_load(self):
         self.assertRaises(ValueError, bp._load_metrics, ['AAA'])


Mime
View raw message