From f9d7f69d7e8ae1dceaba09ac4412438076261744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 31 Dec 2019 11:25:48 +0100 Subject: [PATCH] :white_check_mark: Update completion tests, checking for printed message --- tests/test_completion.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_completion.py b/tests/test_completion.py index feba8c18a4..6da2d9cdd7 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -45,5 +45,7 @@ def test_install_completion(): env={**os.environ, "SHELL": "/bin/bash"}, ) new_text = bash_completion_path.read_text() - assert "_TUTORIAL001.PY_COMPLETE=complete-bash" in new_text bash_completion_path.write_text(text) + assert "_TUTORIAL001.PY_COMPLETE=complete-bash" in new_text + assert "completion installed in" in result.stdout + assert "Completion will take effect once you restart the terminal." in result.stdout