mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
This should work, right?
It's embarrassing that I didn't come up with something so simple before.
This commit is contained in:
parent
53878f001a
commit
5ed9c821b8
1 changed files with 3 additions and 5 deletions
|
|
@ -23,14 +23,12 @@ def test_get_storage_init_args():
|
|||
assert not required
|
||||
|
||||
|
||||
def test_request_ssl(httpsserver):
|
||||
httpsserver.serve_content('') # we need to serve something
|
||||
|
||||
def test_request_ssl():
|
||||
with pytest.raises(requests.exceptions.ConnectionError) as excinfo:
|
||||
http.request('GET', httpsserver.url)
|
||||
http.request('GET', "https://self-signed.badssl.com/")
|
||||
assert 'certificate verify failed' in str(excinfo.value)
|
||||
|
||||
http.request('GET', httpsserver.url, verify=False)
|
||||
http.request('GET', "https://self-signed.badssl.com/", verify=False)
|
||||
|
||||
|
||||
def _fingerprints_broken():
|
||||
|
|
|
|||
Loading…
Reference in a new issue