-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 _scalar_value_tomof() function has been changed to invoke to_wbem_uri() with the new format 'sorted' introduced in pywbem 1.0.0. If that format is not supported, pywbem >=0.13,<1.0 raises ValueError, and in that case, format 'standard' is used. Pywbem <0.13 ignores format 'sorted' and returns the standard format. Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
- Loading branch information
1 parent
f39ee84
commit 2a82a2e
Showing
2 changed files
with
63 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters