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

pywbem / pywbemtools / 4135
93%

Build:
DEFAULT BRANCH: master
Ran 24 Aug 2020 06:45AM UTC
Jobs 3
Files 21
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

pending completion
4135

push

travis-ci

andy-maier
Cleanup and improvements in ConnectionRepository

Details:

* Changed the _load_connections_file() method to succeed if the connections
  file does not exist, instead of raising ConnectionsFileNotFoundError.
  As a consequence, removed the ConnectionsFileNotFoundError exception.
  This was done because having an empty initial ConnectionRepository object is
  consistent with showing an empty state of it when accessing it. Previously,
  all read-only access methods have raised the exception in that state.

* Changed the file_exists() method to no longer load the connections file,
  because it can do its job without that. Adjusted all callers of
  file_exists() to load the connections file if that was needed for their
  job.

* As a consequence of removing the ConnectionsFileNotFoundError exception,
  the __repr__() method now shows an empty connection repo if the file
  does not exist. Previously, it raised the exception.
  Added information about file existence to the returned string.

* Changed the string returned from __repr__() to have all attributes inside
  the parenthesis, and to show the connection names with !r formatting.
  Adjusted testcases to the !r formatting.

* In the setter of property default_connection_name, changed the exception
  that is raised when the specified connection definition does not exist,
  from ValueError to KeyError, for consistency with other such cases.
  Adjusted testcases accordingly.

* In PywbemServer.__init__() and create(), documented that they can raise only
  ValueError and TypeError. As a result, removed the handling of KeyError in
  _load_connections_file().

* Removed the 'ioerrtext' init parameter from ConnectionsFileWriteError,
  requiring the caller to include that in the 'message' parameter if needed,
  in order to have better control on the caller's side for a proper error
  message.

* Changed exception handling of IOError/OSError to always catch both, because
  IOError has been merged into OSError i... (continued)

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

3095 of 3349 relevant lines covered (92.42%)

2.77 hits per line

Jobs
ID Job ID Ran Files Coverage
2 4135.2 (PACKAGE_LEVEL=latest) 24 Aug 2020 06:45AM UTC 0
92.33
Travis Job 4135.2
3 4135.3 (PACKAGE_LEVEL=latest) 24 Aug 2020 06:46AM UTC 0
92.18
Travis Job 4135.3
5 4135.5 (PACKAGE_LEVEL=latest) 24 Aug 2020 06:45AM UTC 0
92.3
Travis Job 4135.5
Source Files on build 4135
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4135
  • 4fce8b79 on github
  • Prev Build on master (#4134)
  • Next Build on master (#4177)
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