Skip to content

Commit b6c12a5

Browse files
committed
assert output is empty
1 parent 15fcf19 commit b6c12a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: test/test_main.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ def test_command_help():
3333

3434

3535
def test_command_lib_list():
36+
"""
37+
When ouput is empty, nothing is printed out, no matter the output format
38+
"""
3639
result = run_command('lib list')
3740
assert result.ok
3841
assert result.stderr == ''
3942
result = run_command('lib list', '--format json')
40-
assert '{}' == result.stdout
43+
assert '' == result.stdout
4144

4245

4346
def test_command_lib_install():

0 commit comments

Comments
 (0)