We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a110fe commit d772f78Copy full SHA for d772f78
test/test_http_adapter.py
@@ -47,10 +47,10 @@ def test_ssl_verification():
47
service = BaseService(service_url='https://localhost:3333', authenticator=NoAuthAuthenticator())
48
#
49
# First call the server with the default configuration.
50
- # It should fail due to the invalid SSL cert.
+ # It should fail due to the self-signed SSL cert.
51
assert service.disable_ssl_verification is False
52
prepped = service.prepare_request('GET', url='/')
53
- with pytest.raises(SSLError):
+ with pytest.raises(SSLError, match="certificate verify failed: self-signed certificate"):
54
res = service.send(prepped)
55
56
# Next configure it to validate by using our local certificate. Should raise no exception.
0 commit comments