88
99import botocore .exceptions
1010import freezegun
11- import httpx
11+ import httpx2
1212import pytest
1313import sqlalchemy
1414
@@ -92,7 +92,7 @@ async def test_upload_and_clean(
9292
9393 # Do the actual upload
9494 files = {"file" : ("file" , BytesIO (data ))}
95- async with httpx .AsyncClient () as httpx_client :
95+ async with httpx2 .AsyncClient () as httpx_client :
9696 response = await httpx_client .post (
9797 response .url , data = response .fields , files = files
9898 )
@@ -111,7 +111,7 @@ async def test_upload_and_clean(
111111 download_response = await get_sandbox_file (
112112 expected_pfn , sandbox_metadata_db , sandbox_settings
113113 )
114- async with httpx .AsyncClient () as httpx_client :
114+ async with httpx2 .AsyncClient () as httpx_client :
115115 response = await httpx_client .get (download_response .url )
116116 response .raise_for_status ()
117117 assert response .content == data
@@ -124,7 +124,7 @@ async def test_upload_and_clean(
124124 download_response = await get_sandbox_file (
125125 expected_pfn , sandbox_metadata_db , sandbox_settings
126126 )
127- async with httpx .AsyncClient () as httpx_client :
127+ async with httpx2 .AsyncClient () as httpx_client :
128128 response = await httpx_client .get (download_response .url )
129129 response .raise_for_status ()
130130 assert response .content == data
0 commit comments