File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
climada/util/calibrate/test Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -247,8 +247,8 @@ def test_kwargs_to_impact_func_creator(self, _):
247247 def test_target_func (self , _ ):
248248 """Test if cost function is transformed correctly
249249
250- We test the method '_target_func' through 'run' because it is
251- private """
250+ We test the method '_target_func' through 'run' because it is private
251+ """
252252 self .input .bounds = {"x_2" : (0 , 1 ), "x 1" : (1 , 2 )}
253253 self .input .cost_func .side_effect = [1.0 , - 1.0 ]
254254 self .optimizer = BayesianOptimizer (self .input )
@@ -265,4 +265,7 @@ def test_target_func(self, _):
265265 TESTS .addTests (
266266 unittest .TestLoader ().loadTestsFromTestCase (TestScipyMinimizeOptimizer )
267267 )
268+ TESTS .addTests (
269+ unittest .TestLoader ().loadTestsFromTestCase (TestBayesianOptimizer )
270+ )
268271 unittest .TextTestRunner (verbosity = 2 ).run (TESTS )
You can’t perform that action at this time.
0 commit comments