• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit-ibm-runtime / 30427230878
89%

Build:
DEFAULT BRANCH: main
Ran 29 Jul 2026 06:13AM UTC
Jobs 11
Files 334
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Jul 2026 06:03AM UTC coverage: 88.983% (+1.2%) from 87.788%
30427230878

push

github

web-flow
Add decorator for mocking http responses (#3112)

### Summary

Add a `@mock_responses` decorator that allows a test to use mocked
responses against the API. It is based on `responses`, providing a
slightly customized `BaseRegistry` for specifying which instances and
backends are to be available in the test (and generating the responses
based on those).

A couple of test files have been revised in order to make use of the
decorator.

### Details and comments

Fixes #3109

The intent is not to extend the decorator/registries functionality to
cover all API usage, but instead to allow comfortable testing of
`QiskitRuntimeService`, and specially its instance/backend
functionality. If this goes through, the plan is to continue revising
the unit tests to convert them to this approach, being selective (as
there is the risk of increasing complexity in the callbacks).

### AI/LLM disclosure

- [x] I used the following tool to generate or modify code: Claude

---------

Co-authored-by: Claude <noreply@anthropic.com>

1 of 1 new or added line in 1 file covered. (100.0%)

3 existing lines in 1 file now uncovered.

9167 of 10302 relevant lines covered (88.98%)

9.73 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
76.61
5.8% qiskit_ibm_runtime/qiskit_runtime_service.py
Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.13-windows-latest - 30427230878.1 29 Jul 2026 06:14AM UTC 334
87.53
GitHub Action Run
2 unit-tests_python3.11-ubuntu-latest - 30427230878.2 29 Jul 2026 06:13AM UTC 334
88.97
GitHub Action Run
3 unit-tests_python3.10-ubuntu-latest - 30427230878.3 29 Jul 2026 06:13AM UTC 334
88.97
GitHub Action Run
4 unit-tests_python3.12-macos-latest - 30427230878.4 29 Jul 2026 06:13AM UTC 334
88.97
GitHub Action Run
5 unit-tests_python3.11-macos-latest - 30427230878.5 29 Jul 2026 06:13AM UTC 334
88.97
GitHub Action Run
6 unit-tests_python3.12-windows-latest - 30427230878.6 29 Jul 2026 06:14AM UTC 334
87.53
GitHub Action Run
7 unit-tests_python3.10-windows-latest - 30427230878.7 29 Jul 2026 06:13AM UTC 334
87.53
GitHub Action Run
8 unit-tests_python3.13-ubuntu-latest - 30427230878.8 29 Jul 2026 06:13AM UTC 334
88.97
GitHub Action Run
9 unit-tests_python3.13-macos-latest - 30427230878.9 29 Jul 2026 06:13AM UTC 334
88.97
GitHub Action Run
10 unit-tests_python3.11-windows-latest - 30427230878.10 29 Jul 2026 06:14AM UTC 334
87.53
GitHub Action Run
11 unit-tests_python3.12-ubuntu-latest - 30427230878.11 29 Jul 2026 06:13AM UTC 334
88.97
GitHub Action Run
Source Files on build 30427230878
  • Tree
  • List 334
  • Changed 9
  • Source Changed 1
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30427230878
  • 5ab43e75 on github
  • Prev Build on gh-readonly-queue/main/pr-3128-8d90beaf1c5c0739209df96229c9b8e8c81b4042 (#30399646896)
  • Next Build on main (#30450753282)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc