Skip to content

Commit

Permalink
Speed up slow input constructor test (#2564)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #2564

Reviewed By: sdaulton

Differential Revision: D63838676

fbshipit-source-id: 9149f807831a4859bdd1f8d655b8f847c4cb29cb
  • Loading branch information
esantorella authored and facebook-github-bot committed Oct 4, 2024
1 parent db2e947 commit c7b3d82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/acquisition/test_input_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
from botorch.models.deterministic import FixedSingleSampleModel
from botorch.models.model_list_gp_regression import ModelListGP
from botorch.sampling.normal import IIDNormalSampler, SobolQMCNormalSampler
from botorch.test_utils.mock import fast_optimize
from botorch.utils.constraints import get_outcome_constraint_transforms
from botorch.utils.datasets import SupervisedDataset
from botorch.utils.multi_objective.box_decompositions.non_dominated import (
Expand Down Expand Up @@ -1845,6 +1846,7 @@ def setUp(self, suppress_input_warnings: bool = True) -> None:
},
)

@fast_optimize
def test_constructors_can_instantiate(self) -> None:
for key, (classes, input_constructor_kwargs) in self.cases.items():
with self.subTest(
Expand Down

0 comments on commit c7b3d82

Please sign in to comment.