mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Make broken test as xfail
This commit is contained in:
parent
c55b969791
commit
c1d3efb6b8
1 changed files with 14 additions and 10 deletions
|
|
@ -27,17 +27,21 @@ def test_get_storage_init_args():
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_request_ssl():
|
async def test_request_ssl():
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
with pytest.raises(aiohttp.ClientConnectorCertificateError) as excinfo:
|
with pytest.raises(
|
||||||
|
aiohttp.ClientConnectorCertificateError,
|
||||||
|
match="certificate verify failed",
|
||||||
|
):
|
||||||
await http.request(
|
await http.request(
|
||||||
"GET",
|
"GET",
|
||||||
"https://self-signed.badssl.com/",
|
"https://self-signed.badssl.com/",
|
||||||
session=session,
|
session=session,
|
||||||
)
|
)
|
||||||
assert "certificate verify failed" in str(excinfo.value)
|
|
||||||
|
|
||||||
# XXX FIXME
|
|
||||||
|
|
||||||
with pytest.raises(Exception):
|
@pytest.mark.xfail(reason="feature not implemented")
|
||||||
|
@pytest.mark.asyncio
|
||||||
|
async def test_request_unsafe_ssl():
|
||||||
|
async with aiohttp.ClientSession() as session:
|
||||||
await http.request(
|
await http.request(
|
||||||
"GET",
|
"GET",
|
||||||
"https://self-signed.badssl.com/",
|
"https://self-signed.badssl.com/",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue