Steve Kamerman преди 8 години
родител
ревизия
ad57c48465
променени са 2 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 0 1
      test2/test_ssl/test_nohttp.py
  2. 1 1
      test2/test_ssl/test_nohttps.py

+ 0 - 1
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
-

+ 1 - 1
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)