Skip to content

Commit 3fc8926

Browse files
author
Massimiliano Pippi
committed
adjusted tests for the new output
1 parent 460b2e5 commit 3fc8926

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: test/test_lib.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def test_list(run_command):
2323
result = run_command("lib list")
2424
assert result.ok
2525
assert "" == result.stderr
26-
assert "" == result.stdout
26+
assert "No libraries installed." == result.stdout.strip()
2727
result = run_command("lib list --format json")
2828
assert result.ok
2929
assert "" == result.stderr
30-
assert "" == result.stdout
30+
assert "null" == result.stdout
3131

3232
# Install something we can list at a version older than latest
3333
result = run_command("lib install [email protected]")
@@ -83,7 +83,7 @@ def test_search(run_command):
8383

8484
result = run_command("lib search --names")
8585
assert result.ok
86-
out_lines = result.stdout.splitlines()
86+
out_lines = result.stdout.strip().splitlines()
8787
# Create an array with just the name of the vars
8888
libs = []
8989
for line in out_lines:

0 commit comments

Comments
 (0)