Add type hints to test.with_dummyserver.test_no_ssl
MODIFY
noxfile.py
noxfile.py
@@ -169,6 +169,7 @@ def mypy(session: nox.Session) -> None:
"test/__init__.py",
"test/with_dummyserver/test_https.py",
"test/with_dummyserver/test_integration.py",
+ "test/with_dummyserver/test_no_ssl.py",
"test/conftest.py",
"test/contrib/test_pyopenssl_dependencies.py",
"test/contrib/test_socks.py",

MODIFY
test/with_dummyserver/test_no_ssl.py
test/with_dummyserver/test_no_ssl.py
@@ -15,14 +15,14 @@ pytestmark = pytest.mark.flaky
class TestHTTPWithoutSSL(HTTPDummyServerTestCase, TestWithoutSSL):
- def test_simple(self):
+ def test_simple(self) -> None:
with urllib3.HTTPConnectionPool(self.host, self.port) as pool:
r = pool.request("GET", "/")
assert r.status == 200, r.data
class TestHTTPSWithoutSSL(HTTPSDummyServerTestCase, TestWithoutSSL):
- def test_simple(self):
+ def test_simple(self) -> None:
with urllib3.HTTPSConnectionPool(
self.host, self.port, cert_reqs="NONE"
) as pool:

Add type hints to test.with_dummyserver.test_no_ssl