From 4ecd7ecbc705db7ad9953b1cab2e3b8a15c9d748 Mon Sep 17 00:00:00 2001 From: Devesh Kumar Singh Date: Sun, 17 May 2020 01:10:31 +0530 Subject: [PATCH] Assert result string in test_prompt_for_authentication --- tests/functional/test_install_config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/functional/test_install_config.py b/tests/functional/test_install_config.py index 8e9b04a37..dcc9c66d5 100644 --- a/tests/functional/test_install_config.py +++ b/tests/functional/test_install_config.py @@ -242,8 +242,9 @@ def test_prompt_for_authentication(script, data, cert_factory): result = script.pip('install', "--index-url", url, "--cert", cert_path, "--client-cert", cert_path, 'simple', expect_error=True) - print(result) - assert 'User for {}:{}'.format(server.host, server.port) in result.stdout + + assert 'User for {}:{}'.format(server.host, server.port) in \ + result.stdout, str(result) def test_do_not_prompt_for_authentication(script, data, cert_factory):