Skip to content

Commit 71423d5

Browse files
committed
test pretty print
1 parent f9a14c3 commit 71423d5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/test_packsmanager.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ def test_available_examples(expected_dict):
3232
), f"{ex} not found under pack {pack}."
3333

3434

35-
def test_print_info():
36-
"""Test that print_info runs without error."""
37-
assert False
35+
def test_print_info(capsys):
36+
"""Test that print_info prints expected information to stdout."""
37+
pkmg = PacksManager()
38+
pkmg.print_info()
39+
captured = capsys.readouterr()
40+
output = captured.out.strip()
41+
assert "Available packs" in output or "Installed packs" in output

0 commit comments

Comments
 (0)