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

pywbem / pywbemtools / 2959 / 3
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 12 Mar 2020 06:44AM UTC
Files 18
Run time 1s
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

12 Mar 2020 06:37AM UTC coverage: 89.624% (+0.09%) from 89.539%
PACKAGE_LEVEL=latest

push

travis-ci

andy-maier
Fixes Issue # 354, Command-specific default output format & improve output format validation

1. Set default for output format general option to None.

2. Implement testing of each command for allowed output formats
for that command.

  a. Create a function in common.py (validate_output_format)
whose parameters are  the cmdline input format,  the allowed
format types (CIM, TABLE), and the default output_format
if the cmd line output_format is the default (None).  If the function
is called with a output_format that is not
allowed it generates an exception. Otherwise it returns the
output_format to be used for the command.

  b. Add this function to each command action function that
returns data so that each command is tested against the
cmd line output_format for valid output format type and also
provides its default if the general option is None.

Note that this function call is not added to commands like
instance delete that return nothing.

3. Add tests for invalid format for specific commands

4. Adds a test of the new common function.

4. Modify the documentation to include a table of allowed output
formats for each command.

2505 of 2795 relevant lines covered (89.62%)

0.9 hits per line

Source Files on job 2959.3 (PACKAGE_LEVEL=latest)
  • Tree
  • List 0
  • Changed 8
  • Source Changed 8
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 199
  • Travis Job 2959.3
  • 93e5f241 on github
  • Prev Job for PACKAGE_LEVEL=latest on master (#2948.3)
  • Next Job for PACKAGE_LEVEL=latest on master (#2984.3)
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