| Conditions | 2 |
| Total Lines | 7 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # Author: Simon Blanke |
||
| 23 | def test_replacement_0(): |
||
| 24 | opt = BayesianOptimizer(search_space, replacement=True) |
||
| 25 | opt.search(parabola_function, n_iter=15) |
||
| 26 | |||
| 27 | with pytest.raises(ValueError): |
||
| 28 | opt = BayesianOptimizer(search_space, replacement=False) |
||
| 29 | opt.search(parabola_function, n_iter=15) |
||
| 30 |