Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@ def test_command_help():


def test_command_lib_list():
"""
When ouput is empty, nothing is printed out, no matter the output format
"""
result = run_command('lib list')
assert result.ok
assert result.stderr == ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also change this to

assert '' == result.stderr

to keep the style consistent

result = run_command('lib list', '--format json')
assert '{}' == result.stdout
assert '' == result.stdout


def test_command_lib_install():
Expand Down