File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ async def upload_bytes():
563
563
break
564
564
yield chunk
565
565
566
- await self ._request ('PUT ' , f'/api/blobs/{ digest } ' , content = upload_bytes ())
566
+ await self ._request ('POST ' , f'/api/blobs/{ digest } ' , content = upload_bytes ())
567
567
568
568
return digest
569
569
Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ def test_client_create_from_library(httpserver: HTTPServer):
418
418
419
419
def test_client_create_blob (httpserver : HTTPServer ):
420
420
httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD' ).respond_with_response (Response (status = 404 ))
421
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'PUT ' ).respond_with_response (Response (status = 201 ))
421
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 201 ))
422
422
423
423
client = Client (httpserver .url_for ('/' ))
424
424
@@ -759,7 +759,7 @@ async def test_async_client_create_from_library(httpserver: HTTPServer):
759
759
@pytest .mark .asyncio
760
760
async def test_async_client_create_blob (httpserver : HTTPServer ):
761
761
httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD' ).respond_with_response (Response (status = 404 ))
762
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'PUT ' ).respond_with_response (Response (status = 201 ))
762
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 201 ))
763
763
764
764
client = AsyncClient (httpserver .url_for ('/' ))
765
765
You can’t perform that action at this time.
0 commit comments