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

pywbem / pywbemtools / 2959
93%

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

pending completion
2959

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

Jobs
ID Job ID Ran Files Coverage
3 2959.3 (PACKAGE_LEVEL=latest) 12 Mar 2020 06:44AM UTC 0
89.62
Travis Job 2959.3
Source Files on build 2959
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2959
  • 93e5f241 on github
  • Prev Build on master (#2948)
  • Next Build on master (#2984)
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