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

pywbem / pywbemtools / 3527
91%
master: 93%

Build:
Build:
LAST BUILD BRANCH: andy/use-published-click-repl
DEFAULT BRANCH: master
Ran 18 Jun 2020 04:52AM UTC
Jobs 1
Files 19
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
3527

push

travis-ci

andy-maier
Added output checking in test_print_insts_as_table()

Details:

* test_print_insts_as_table() was using the simplified_test_function
  decorator which does not allow additional fixture arguments such
  as capsys for capturing stdout. As a result, thi testcase did
  not check the output of the tested print function.
  Attempts were made to extend the simplified_test_function decorator
  in order to support additional arguments, but they were all
  uncuccessful.

  This change removes the use of the simplified_test_function decorator
  from  test_print_insts_as_table() and passes the parametrization
  directly, so the capsys fixture could be added.
  Checking of the output was added, and the expected output in the
  testcases needed to be adjusted.

* In order to have reliable order of keys in references, the
  CIMInstanceName.to_wbem_uri() method of pywbem has been changed
  in pywbem 1.0.0b1 to return sorted keys with format 'standard'.
  The _scalar_value_tomof() function has been changed to invoke
  to_wbem_uri() with format 'standard', just to be more explicit.
  The one testcase in test_print_insts_as_table() that has a reference
  with multiple keys is skipped when using earlier versions of pywbem.

* Click has an issue on Windows when using click.echo() together with
  the pytest capsys fixture. See Click issue
  https://github.com/pallets/click/issues/1590.
  The testcases in test_print_insts_as_table() are skipped when
  running on Windows.

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

2878 of 3174 relevant lines covered (90.67%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
5 3527.5 (PACKAGE_LEVEL=latest) 18 Jun 2020 04:52AM UTC 0
90.67
Travis Job 3527.5
Source Files on build 3527
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3527
  • d4f5eda3 on github
  • Prev Build on andy/fix-capsys (#3525)
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