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

zhmcclient / python-zhmcclient / test-4094 / 7
80%
master: 80%

Build:
DEFAULT BRANCH: master
Ran 01 Nov 2025 11:37PM UTC
Files 60
Run time 10s
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

01 Nov 2025 06:41AM UTC coverage: 79.57%. First build
test-4094.7

push

github

web-flow
Reduced number of HMC sessions in end2end tests (#2016)

The key change is to change the scope of the pytest fixtures in
zhmcclient.testutils from 'module' to 'session'. That causes the
hmc_session fixture (and thus the HMC session) to be created only
once during a pytest run.

All the other changes are follow-up requirements for that to work.

Details:

* Changed the scope of the pytest fixtures in the zhmcclient.testutils subtree
  from "module" to "session".

* The "session" scope of fixtures is only honored by pytest if the fixtures are
  globally known to pytest. Therefore, the definition of the fixtures has been
  changed as follows:

    - Fixtures available for zhmcclient users are now registered as a pytest
      plugin. This has been done for the entire zhmcclient.testutils
      subtree, because most of the non-fixture functionality in that subtree
      is used by the fixtures. All the public elements are still in place in
      the zhmcclient.testutils module and can be imported from there, so
      there is no change for users.

    - All other fixtures were moved into conftest.py files (which are
      special files recognized by pytest). These fixtures are available to
      the development environment of zhmcclient, but not to its users:

      - tests/unit/conftest.py: The http_mocked_*() fixtures that were
        previously in tests/common/http_mocked_fixtures.py. The zhmc_capture()
        fixture that was previously in tests/unit/zhmcclient/test_logging.py,
        and was named capture(), which seemed a bit too general. Since this
        is an internal fixture, the rename is no change for users.

      - tests/end2end/conftest.py: The zhmc_logger() fixture that was
        previously in tests/end2end/utils.py and was named logger(), which
        seemed a bit too general. Since this is an internal fixture, the
        rename is no change for users.

* In addition, the "session" scope of fixtures is only honored by pytest if the... (continued)

9184 of 11542 relevant lines covered (79.57%)

0.8 hits per line

Source Files on job ubuntu-latest,3.10,latest - test-4094.7
  • Tree
  • List 60
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 0
  • e88be18d on github
  • Next Job for on master (#test-4097.6)
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

© 2025 Coveralls, Inc