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

zhmcclient / python-zhmcclient / test-4093
80%

Build:
DEFAULT BRANCH: master
Ran 01 Nov 2025 06:47AM UTC
Jobs 12
Files 60
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

01 Nov 2025 06:41AM UTC coverage: 79.729% (-0.002%) from 79.731%
test-4093

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)

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

9247 of 11598 relevant lines covered (79.73%)

9.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 windows-latest,3.8,latest - test-4093.1 01 Nov 2025 06:53AM UTC 60
79.54
GitHub Action Run
2 macos-latest,3.8,latest - test-4093.2 01 Nov 2025 06:53AM UTC 60
79.54
GitHub Action Run
3 ubuntu-latest,3.12,latest - test-4093.3 01 Nov 2025 06:53AM UTC 60
79.57
GitHub Action Run
4 ubuntu-latest,3.14,minimum - test-4093.4 01 Nov 2025 06:53AM UTC 60
79.65
GitHub Action Run
5 ubuntu-latest,3.9,latest - test-4093.5 01 Nov 2025 06:53AM UTC 60
79.59
GitHub Action Run
6 macos-latest,3.14,minimum - test-4093.6 01 Nov 2025 06:53AM UTC 60
79.65
GitHub Action Run
7 ubuntu-22.04,3.8,minimum - test-4093.7 01 Nov 2025 06:53AM UTC 60
79.54
GitHub Action Run
8 macos-latest,3.11,latest - test-4093.8 01 Nov 2025 06:53AM UTC 60
79.57
GitHub Action Run
9 windows-latest,3.14,latest - test-4093.9 01 Nov 2025 06:53AM UTC 60
79.65
GitHub Action Run
10 ubuntu-latest,3.14,latest - test-4093.10 01 Nov 2025 06:53AM UTC 60
79.65
GitHub Action Run
11 windows-latest,3.14,minimum - test-4093.11 01 Nov 2025 06:53AM UTC 60
79.65
GitHub Action Run
12 windows-latest,3.8,minimum - test-4093.12 01 Nov 2025 06:53AM UTC 60
79.54
GitHub Action Run
Source Files on build test-4093
  • Tree
  • List 60
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e88be18d on github
  • Prev Build on master (#TEST-4091)
  • Next Build on master (#TEST-4094)
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