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

Qiskit / qiskit-ibm-runtime / 27974850553 / 7
87%
main: 87%

Build:
DEFAULT BRANCH: main
Ran 22 Jun 2026 06:32PM UTC
Files 319
Run time 15s
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

22 Jun 2026 06:20PM UTC coverage: 86.981%. Remained the same
27974850553.7

push

github

web-flow
Homogenize on unittest-style asserts (#2941)

<!--
⚠️ The pull request title should be short detailed and understandable
for all.
⚠️ Also, please add a release note file using reno if the change needs
to be
  documented in the release notes.
⚠️ If your pull request fixes an open issue, please link to the issue.

✅ I have added the tests to cover my changes.
✅ I have updated the documentation accordingly.
✅ I have read the CONTRIBUTING document.
-->

### Summary

During #2934, noticed that we are mixing bare `asserts` with
unitttest-style asserts (`self.assertFoo`) in the tests. While they are
both acceptable and roughly equivalent in most scenarios, this PR
homogenizes them in direction of unittest, with the main argument being
consistency, and adds a `ruff` rule to enforce not using asserts.

### Details and comments

Other minor arguments for going with unittest are continuing to strive
for a runner-agnostic suite based on `unittest`, which can provide more
informative details when the asserts are not met. Minor argument for
bare `assert` is readability and conciseness.

Fixes N/A

### AI/LLM disclosure

- [x] I used the following tool to generate or modify code: claude opus
4.8 for easier replacing.

8218 of 9448 relevant lines covered (86.98%)

0.87 hits per line

Source Files on job unit-tests_python3.10-ubuntu-latest - 27974850553.7
  • Tree
  • List 319
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27974850553
  • 609b3c3c on github
  • Prev Job for on main (#27835008169.9)
  • Next Job for on main (#28049770968.8)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc