Skip to content

Commit

Permalink
Modified estimate cost to have an assert
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bone committed Sep 17, 2024
1 parent 16d0077 commit 3d3a076
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_plugins/test_design.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,11 @@ def emulated_job_delete(self):
# Test with dict pre function
estimate = design_space.estimate_cost(scs_pre_dict)

if est_cost_func == emulated_estimate_cost_return:
assert isinstance(estimate, float)
else:
assert estimate is None


@pytest.mark.parametrize(
"sweep_method",
Expand Down

0 comments on commit 3d3a076

Please sign in to comment.