From 7d9fd596d0b4fa6b43c58a981d4fb32724495338 Mon Sep 17 00:00:00 2001 From: CSRedRat Date: Sat, 21 Nov 2020 12:48:43 +0500 Subject: [PATCH] fix hint autotest --- tests/test_topalias.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_topalias.py b/tests/test_topalias.py index 69b6f75..202b395 100644 --- a/tests/test_topalias.py +++ b/tests/test_topalias.py @@ -45,7 +45,14 @@ def test_print_hint(capsys): """Test hints""" aliascore.print_hint() captured = capsys.readouterr() - assert "Hint: " in captured.out + assert "Hint" in captured.out + + +def test_print_all_hint(capsys): + """Test all hints""" + aliascore.print_all_hint() + captured = capsys.readouterr() + assert "Hint (secure)" in captured.out def test_command_line_interface():