()
| 184 | |
| 185 | |
| 186 | def test_y_max(): |
| 187 | space = TargetSpace(target_func, PBOUNDS) |
| 188 | assert space._target_max() is None |
| 189 | space.probe(params={"p1": 1, "p2": 7}) |
| 190 | space.probe(params={"p1": 0.5, "p2": 1}) |
| 191 | space.probe(params={"p1": 0, "p2": 1}) |
| 192 | assert space._target_max() == 8 |
| 193 | |
| 194 | |
| 195 | def test_y_max_with_constraint(): |
nothing calls this directly
no test coverage detected