From ad57c484657e4f39d40a8a8b221b73ac6f4a2935 Mon Sep 17 00:00:00 2001 From: Steve Kamerman Date: Tue, 31 Jan 2017 23:57:16 -0800 Subject: [PATCH] Fixed HTTPS test --- test2/test_ssl/test_nohttp.py | 1 - test2/test_ssl/test_nohttps.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test2/test_ssl/test_nohttp.py b/test2/test_ssl/test_nohttp.py index ad44b4a..d7f0d92 100644 --- a/test2/test_ssl/test_nohttp.py +++ b/test2/test_ssl/test_nohttp.py @@ -16,4 +16,3 @@ def test_web2_HSTS_policy_is_active(docker_compose, nginxproxy): r = nginxproxy.get("https://web2.nginx-proxy.tld/port", allow_redirects=False) assert "answer from port 82\n" in r.text assert "Strict-Transport-Security" in r.headers - diff --git a/test2/test_ssl/test_nohttps.py b/test2/test_ssl/test_nohttps.py index 558798c..6872c35 100644 --- a/test2/test_ssl/test_nohttps.py +++ b/test2/test_ssl/test_nohttps.py @@ -11,4 +11,4 @@ def test_https_is_disabled(docker_compose, nginxproxy): with pytest.raises(ConnectionError) as excinfo: r = nginxproxy.get("https://web.nginx-proxy.tld/", allow_redirects=False) - assert "[Errno 93] Protocol not supported" in excinfo.value + assert "[Errno 93] Protocol not supported" in str(excinfo.value)