Skip to content

Commit

Permalink
improve cost not found test
Browse files Browse the repository at this point in the history
  • Loading branch information
jtherrmann committed Mar 10, 2025
1 parent 84b142f commit 82d0190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_dynamo/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def test_get_credit_cost():
dynamo.jobs._get_credit_cost({'job_type': 'RTC_GAMMA', 'job_parameters': {'resolution': 20.0}}, costs) == 15.0
)
assert dynamo.jobs._get_credit_cost({'job_type': 'RTC_GAMMA', 'job_parameters': {'resolution': 30.0}}, costs) == 5.0
with pytest.raises(ValueError):
with pytest.raises(ValueError, match=r'^Cost not found for job type RTC_GAMMA with resolution == 13$'):
dynamo.jobs._get_credit_cost({'job_type': 'RTC_GAMMA', 'job_parameters': {'resolution': 13.0}}, costs)
assert (
dynamo.jobs._get_credit_cost({'job_type': 'INSAR_ISCE_BURST', 'job_parameters': {'foo': 'bar'}}, costs) == 1.0
Expand Down

0 comments on commit 82d0190

Please sign in to comment.