Skip to content

Commit 5ed9c82

Browse files
author
Hugo Osvaldo Barrera
committed
This should work, right?
It's embarrassing that I didn't come up with something so simple before.
1 parent 53878f0 commit 5ed9c82

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/system/utils/test_main.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ def test_get_storage_init_args():
2323
assert not required
2424

2525

26-
def test_request_ssl(httpsserver):
27-
httpsserver.serve_content('') # we need to serve something
28-
26+
def test_request_ssl():
2927
with pytest.raises(requests.exceptions.ConnectionError) as excinfo:
30-
http.request('GET', httpsserver.url)
28+
http.request('GET', "https://self-signed.badssl.com/")
3129
assert 'certificate verify failed' in str(excinfo.value)
3230

33-
http.request('GET', httpsserver.url, verify=False)
31+
http.request('GET', "https://self-signed.badssl.com/", verify=False)
3432

3533

3634
def _fingerprints_broken():

0 commit comments

Comments
 (0)