Skip to content
Snippets Groups Projects
Commit ff1965c3 authored by Stefano Borini's avatar Stefano Borini
Browse files

Fixed error (for real this time)

parent 8cb882e5
No related branches found
No related tags found
1 merge request!157Added an empty list return from parameter factories
......@@ -17,8 +17,20 @@ from envisage.plugin import Plugin
class MCOFactory(BaseMCOFactory):
def get_identifier(self):
return "dummy_mco_2"
def get_name(self):
return "foo"
return "Dummy MCO 2"
def get_model_class(self):
return DummyMCOModel
def get_communicator_class(self):
return DummyMCOCommunicator
def get_optimizer_class(self):
return DummyMCO
class TestBaseMCOFactory(unittest.TestCase):
......@@ -38,7 +50,7 @@ class TestBaseMCOFactory(unittest.TestCase):
def test_base_object_parameter_factories(self):
factory = MCOFactory(self.plugin)
self.assertNotEqual(factory.parameter_factories(), [])
self.assertEqual(factory.parameter_factories(), [])
def test_broken_get_identifier(self):
class Broken(DummyMCOFactory):
......
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