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

pywbem / pywbemtools / 4285
92%
master: 93%

Build:
Build:
LAST BUILD BRANCH: andy/use-published-click-repl
DEFAULT BRANCH: master
Ran 03 Sep 2020 07:25AM UTC
Jobs 3
Files 22
Run time 56s
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

pending completion
4285

push

travis-ci

andy-maier
Support for caching mock environments of connection definitions

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. The old-style
  approach now causes a Python warning DeprecatedSetupWarning to be issued.

  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 test 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.

* Cleaned up the direct click.Abort() calls in _pywbem_operations.py to
  now raise an exception, which is handled in pywbem_server.py.

* Added a new test module test_pywbemcli_operations.py that for now
  only tests the loading of the mock environment.

* The test mock scripts 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 line... (continued)

3246 of 3518 relevant lines covered (92.27%)

2.73 hits per line

Jobs
ID Job ID Ran Files Coverage
2 4285.2 (PACKAGE_LEVEL=latest) 03 Sep 2020 07:25AM UTC 0
90.68
Travis Job 4285.2
3 4285.3 (PACKAGE_LEVEL=latest) 03 Sep 2020 07:26AM UTC 0
90.54
Travis Job 4285.3
5 4285.5 (PACKAGE_LEVEL=latest) 03 Sep 2020 07:26AM UTC 0
91.71
Travis Job 4285.5
Source Files on build 4285
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4285
  • ebeddb33 on github
  • Prev Build on andy/cached-mock (#4283)
  • Next Build on andy/cached-mock (#4288)
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