Skip to content
Snippets Groups Projects
Commit cbaa5075 authored by martinRenou's avatar martinRenou
Browse files

Fix tests

parent d22597b5
No related branches found
No related tags found
1 merge request!101Create probe classes for tests
...@@ -129,8 +129,8 @@ class OneValueKPICalculator(BaseKPICalculator): ...@@ -129,8 +129,8 @@ class OneValueKPICalculator(BaseKPICalculator):
class NullKPICalculatorFactory(BaseKPICalculatorFactory): class NullKPICalculatorFactory(BaseKPICalculatorFactory):
id = factory_id("enthought", "null_kpic") id = factory_id("enthought", "test_kpi_calculator")
name = "null_kpic" name = "test_kpi_calculator"
def create_model(self, model_data=None): def create_model(self, model_data=None):
return NullKPICalculatorModel(self) return NullKPICalculatorModel(self)
...@@ -187,8 +187,8 @@ class TwoInputsThreeOutputsDataSource(BaseDataSource): ...@@ -187,8 +187,8 @@ class TwoInputsThreeOutputsDataSource(BaseDataSource):
class NullDataSourceFactory(BaseDataSourceFactory): class NullDataSourceFactory(BaseDataSourceFactory):
id = factory_id("enthought", "null_ds") id = factory_id("enthought", "test_data_source")
name = "null_ds" name = "test_data_source"
def create_model(self, model_data=None): def create_model(self, model_data=None):
return NullDataSourceModel(self) return NullDataSourceModel(self)
...@@ -264,7 +264,7 @@ class TestCoreEvaluationDriver(unittest.TestCase): ...@@ -264,7 +264,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
with self.assertRaisesRegexp( with self.assertRaisesRegexp(
RuntimeError, RuntimeError,
"The number of data values \(1 values\)" "The number of data values \(1 values\)"
" returned by 'null_ds' does not match" " returned by 'test_data_source' does not match"
" the number of output slots"): " the number of output slots"):
driver.application_started() driver.application_started()
...@@ -279,7 +279,7 @@ class TestCoreEvaluationDriver(unittest.TestCase): ...@@ -279,7 +279,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
with self.assertRaisesRegexp( with self.assertRaisesRegexp(
RuntimeError, RuntimeError,
"The number of data values \(1 values\)" "The number of data values \(1 values\)"
" returned by 'null_ds' does not match" " returned by 'test_data_source' does not match"
" the number of user-defined names"): " the number of user-defined names"):
driver.application_started() driver.application_started()
...@@ -294,7 +294,7 @@ class TestCoreEvaluationDriver(unittest.TestCase): ...@@ -294,7 +294,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
with self.assertRaisesRegexp( with self.assertRaisesRegexp(
RuntimeError, RuntimeError,
"The number of data values \(1 values\)" "The number of data values \(1 values\)"
" returned by 'null_kpic' does not match" " returned by 'test_kpi_calculator' does not match"
" the number of output slots"): " the number of output slots"):
driver.application_started() driver.application_started()
...@@ -309,7 +309,7 @@ class TestCoreEvaluationDriver(unittest.TestCase): ...@@ -309,7 +309,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
with self.assertRaisesRegexp( with self.assertRaisesRegexp(
RuntimeError, RuntimeError,
"The number of data values \(1 values\)" "The number of data values \(1 values\)"
" returned by 'null_kpic' does not match" " returned by 'test_kpi_calculator' does not match"
" the number of user-defined names"): " the number of user-defined names"):
driver.application_started() driver.application_started()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment