Update httpcore test to use https as well

This commit is contained in:
Mattia Giambirtone 2024-03-23 13:13:29 +01:00
parent 060d61dc32
commit 0ef965cc92
1 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,10 @@ async def main():
# Note: this test only works because we have our own version of httpcore that
# implements a structio-compatible backend. It's just an example anyway
pool = httpcore.AsyncConnectionPool()
print(await pool.request("GET", "http://example.com"))
# TODO: SSL support
http = await pool.request("GET", "http://example.com")
https = await pool.request("GET", "https://example.com")
assert http.status == 200
assert https.status == 200
structio.run(main)