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

Qiskit / qiskit-ibm-runtime / 37447697077
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-3560-cb418c701c9ef58dcca9128d194dc1cf8c18017c
DEFAULT BRANCH: main
Ran 06 Oct 2026 10:11AM UTC
Jobs 11
Files 332
Run time 2min
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

06 Oct 2026 10:07AM UTC coverage: 91.025% (+0.07%) from 90.951%
37447697077

push

github

web-flow
Move test_batch and test_session from using get_mocked_* (#3427)

### Summary

Moves `test_batch.py` and `test_session.py` away from using
`get_mocked_backend`, replacing them with fake backends (`FakeManilaV2`)
for local tests and `@mock_responses` for service-interaction tests.

### Details and comments

As discussed in #3368 with @diego-plan9, this PR starts the migration
away from `get_mocked_*` helper functions beginning with `test_batch.py`
and `test_session.py`:

- **`test/unit/test_batch.py`**:
  - Replaced all occurrences of `get_mocked_backend`.
  - Uses `FakeManilaV2()` for local tests (`test_run_after_close`).
- Uses `@mock_responses` with `service.backend("common_backend")` for
service-interaction tests (`test_passing_ibm_backend`,
`test_using_ibm_backend_service`, `test_context_manager`).
  - Removed `get_mocked_backend` import.

- **`test/unit/test_session.py`**:
  - Replaced all occurrences of `get_mocked_backend`.
- Uses `FakeManilaV2()` for local tests (`test_max_time`,
`test_run_after_close`) and removes unused mock setup.
- Uses `@mock_responses` for `test_passing_ibm_backend`, `test_run`,
`test_context_manager`, and `test_backend_instance_warnings`.
- Directly executes `session._run` and asserts on job attributes
(`job.backend().name`, `job.session_id`).
- Removed `get_mocked_backend`, `MagicMock`, and unused `IBMBackend`
imports.

- **`test/registries/base.py`**:
- Added support for `DELETE /sessions/{id}/close` callback to properly
handle session closing (no-op) in mock registries.
- Adjusted HTTP 204 responses to return empty bodies (`""`) per HTTP
standards.

Addresses #3368

### AI/LLM disclosure

- [ ] I didn't use LLM tooling, or only used it privately.
- [x] I used the following tool to help write this PR description:
Antigravity
- [x] I used the following tool to generate or modify code: Antigravity

8661 of 9515 relevant lines covered (91.02%)

9.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.10-windows-latest - 37447697077.1 06 Oct 2026 10:13AM UTC 332
89.34
GitHub Action Run
2 unit-tests_python3.13-macos-latest - 37447697077.2 06 Oct 2026 10:12AM UTC 332
91.01
GitHub Action Run
3 unit-tests_python3.13-ubuntu-latest - 37447697077.3 06 Oct 2026 10:12AM UTC 332
91.01
GitHub Action Run
4 unit-tests_python3.11-windows-latest - 37447697077.4 06 Oct 2026 10:14AM UTC 332
89.34
GitHub Action Run
5 unit-tests_python3.13-windows-latest - 37447697077.5 06 Oct 2026 10:14AM UTC 332
89.34
GitHub Action Run
6 unit-tests_python3.12-windows-latest - 37447697077.6 06 Oct 2026 10:14AM UTC 332
89.34
GitHub Action Run
7 unit-tests_python3.11-macos-latest - 37447697077.7 06 Oct 2026 10:12AM UTC 332
91.01
GitHub Action Run
8 unit-tests_python3.11-ubuntu-latest - 37447697077.8 06 Oct 2026 10:12AM UTC 332
91.01
GitHub Action Run
9 unit-tests_python3.12-macos-latest - 37447697077.9 06 Oct 2026 10:12AM UTC 332
91.01
GitHub Action Run
10 unit-tests_python3.12-ubuntu-latest - 37447697077.10 06 Oct 2026 10:11AM UTC 332
91.01
GitHub Action Run
11 unit-tests_python3.10-ubuntu-latest - 37447697077.11 06 Oct 2026 10:12AM UTC 332
91.01
GitHub Action Run
Source Files on build 37447697077
  • Tree
  • List 332
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #37447697077
  • facb5dbf on github
  • Prev Build on gh-readonly-queue/main/pr-3430-106560d2823fbd38e42a8a4e2f14c28eb00917ce (#37350408526)
  • 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