Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
add reno & test
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 committed Jul 27, 2023
1 parent 997ec45 commit 717d274
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions releasenotes/notes/job-cost-estimation-9d1b7bd37dd102c7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
features:
- |
Added a new property, :meth:`~qiskit_ibm_provider.job.IBMCircuitJob.cost_estimation`
that returns the estimated running time and the estimated max running time,
both in seconds.
7 changes: 7 additions & 0 deletions test/integration/test_ibm_job_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,13 @@ def test_invalid_job_tags(self):
job_tags=[1, 2, 3],
)

def test_cost_estimation(self):
"""Test cost estimation is returned correctly."""
self.assertTrue(self.sim_job.cost_estimation["estimated_running_time_seconds"])
self.assertTrue(
self.sim_job.cost_estimation["estimated_max_running_time_seconds"]
)

@skip("TODO refactor fake client")
def test_missing_required_fields(self):
"""Test response data is missing required fields."""
Expand Down

0 comments on commit 717d274

Please sign in to comment.