Skip to content

Commit 620a4c1

Browse files
authored
Assert output is empty (#297)
* assert output is empty * be consistent in style
1 parent 5a4f31d commit 620a4c1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: test/test_main.py

+5-2
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
38-
assert result.stderr == ''
41+
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)