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

pywbem / pywbemtools / 4204 / 5
92%
master: 93%

Build:
Build:
LAST BUILD BRANCH: andy/use-published-click-repl
DEFAULT BRANCH: master
Ran 28 Aug 2020 04:08PM UTC
Files 22
Run time 2s
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

28 Aug 2020 03:57PM UTC coverage: 90.583% (-0.03%) from 90.608%
PACKAGE_LEVEL=latest

push

travis-ci

andy-maier
Support for caching mock environments of connection definitions

TODO:
- Testcases.

Details:

* Added support for caching the mock environment of connections.
  the cache is maintained in the user's home directory in a
  directory ~/.pywbemcli_mockcache.

  Whether the cache is still up to date is determined using the content
  of the mock files (MOF and Python scripts) that are specified for the
  mocked connection. Any further files used by these mock files are not
  taken into consideration for this.

* A new approach for setup of mock scripts has been introduced:
  The mock script defines a setup() function that is called when the
  mock environment is built. It is not called when the mock environment
  is reinstantiated from the cache.

  The old approach with setting global variables is still supported,
  but the mock environment cannot be cached and will be built every time
  when mock scripts with that setup approach are used.

  On Python <3.5, mock scripts with the setup() function are rejected,
  because the functionality to import them is not available, and the
  compile+exec approach does not allow executing the setup() function.

  Two of the existing mock scripts have been copied to implement
  the new setup approach:
  - simple_mock_invokemethod_v1s.py
  - all_types_method_mock_v1s.py

* Added support for showing messages about the cache management when
  the pywbemcli --verbose general option is specified.

* The test providers now pass on the verbose flag to the register_provider()
  method.

* In the Pylint configuration, increased the tolerance before showing a
  'similar lines' issue from 20 to 40 lines (due to the copies of the
  mock scripts with different approaches).

* Cleaned up error handling in _connection_repository.py and PywbemServer.

* Adjusted expected Aborted! cases in test_general_options.py.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>

3261 of 3600 relevant lines covered (90.58%)

0.91 hits per line

Source Files on job 4204.5 (PACKAGE_LEVEL=latest)
  • Tree
  • List 0
  • Changed 17
  • Source Changed 2
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 931
  • Travis Job 4204.5
  • 2da58ed0 on github
  • Prev Job for PACKAGE_LEVEL=latest on andy/cached-mock (#4202.2)
  • Next Job for PACKAGE_LEVEL=latest on andy/cached-mock (#4207.2)
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