@@ -293,7 +293,7 @@ def generate():
293
293
294
294
295
295
def test_client_create_path (httpserver : HTTPServer ):
296
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
296
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
297
297
httpserver .expect_ordered_request (
298
298
'/api/create' ,
299
299
method = 'POST' ,
@@ -316,7 +316,7 @@ def test_client_create_path(httpserver: HTTPServer):
316
316
317
317
318
318
def test_client_create_path_relative (httpserver : HTTPServer ):
319
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
319
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
320
320
httpserver .expect_ordered_request (
321
321
'/api/create' ,
322
322
method = 'POST' ,
@@ -348,7 +348,7 @@ def userhomedir():
348
348
349
349
350
350
def test_client_create_path_user_home (httpserver : HTTPServer , userhomedir ):
351
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
351
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
352
352
httpserver .expect_ordered_request (
353
353
'/api/create' ,
354
354
method = 'POST' ,
@@ -371,7 +371,7 @@ def test_client_create_path_user_home(httpserver: HTTPServer, userhomedir):
371
371
372
372
373
373
def test_client_create_modelfile (httpserver : HTTPServer ):
374
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
374
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
375
375
httpserver .expect_ordered_request (
376
376
'/api/create' ,
377
377
method = 'POST' ,
@@ -390,7 +390,7 @@ def test_client_create_modelfile(httpserver: HTTPServer):
390
390
391
391
392
392
def test_client_create_modelfile_roundtrip (httpserver : HTTPServer ):
393
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
393
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
394
394
httpserver .expect_ordered_request (
395
395
'/api/create' ,
396
396
method = 'POST' ,
@@ -455,7 +455,6 @@ def test_client_create_from_library(httpserver: HTTPServer):
455
455
456
456
457
457
def test_client_create_blob (httpserver : HTTPServer ):
458
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD' ).respond_with_response (Response (status = 404 ))
459
458
httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST' ).respond_with_response (Response (status = 201 ))
460
459
461
460
client = Client (httpserver .url_for ('/' ))
@@ -466,7 +465,7 @@ def test_client_create_blob(httpserver: HTTPServer):
466
465
467
466
468
467
def test_client_create_blob_exists (httpserver : HTTPServer ):
469
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
468
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
470
469
471
470
client = Client (httpserver .url_for ('/' ))
472
471
@@ -774,7 +773,7 @@ def generate():
774
773
775
774
@pytest .mark .asyncio
776
775
async def test_async_client_create_path (httpserver : HTTPServer ):
777
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
776
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
778
777
httpserver .expect_ordered_request (
779
778
'/api/create' ,
780
779
method = 'POST' ,
@@ -798,7 +797,7 @@ async def test_async_client_create_path(httpserver: HTTPServer):
798
797
799
798
@pytest .mark .asyncio
800
799
async def test_async_client_create_path_relative (httpserver : HTTPServer ):
801
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
800
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
802
801
httpserver .expect_ordered_request (
803
802
'/api/create' ,
804
803
method = 'POST' ,
@@ -822,7 +821,7 @@ async def test_async_client_create_path_relative(httpserver: HTTPServer):
822
821
823
822
@pytest .mark .asyncio
824
823
async def test_async_client_create_path_user_home (httpserver : HTTPServer , userhomedir ):
825
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
824
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
826
825
httpserver .expect_ordered_request (
827
826
'/api/create' ,
828
827
method = 'POST' ,
@@ -846,7 +845,7 @@ async def test_async_client_create_path_user_home(httpserver: HTTPServer, userho
846
845
847
846
@pytest .mark .asyncio
848
847
async def test_async_client_create_modelfile (httpserver : HTTPServer ):
849
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
848
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
850
849
httpserver .expect_ordered_request (
851
850
'/api/create' ,
852
851
method = 'POST' ,
@@ -866,7 +865,7 @@ async def test_async_client_create_modelfile(httpserver: HTTPServer):
866
865
867
866
@pytest .mark .asyncio
868
867
async def test_async_client_create_modelfile_roundtrip (httpserver : HTTPServer ):
869
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
868
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
870
869
httpserver .expect_ordered_request (
871
870
'/api/create' ,
872
871
method = 'POST' ,
@@ -933,7 +932,6 @@ async def test_async_client_create_from_library(httpserver: HTTPServer):
933
932
934
933
@pytest .mark .asyncio
935
934
async def test_async_client_create_blob (httpserver : HTTPServer ):
936
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD' ).respond_with_response (Response (status = 404 ))
937
935
httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST' ).respond_with_response (Response (status = 201 ))
938
936
939
937
client = AsyncClient (httpserver .url_for ('/' ))
@@ -945,7 +943,7 @@ async def test_async_client_create_blob(httpserver: HTTPServer):
945
943
946
944
@pytest .mark .asyncio
947
945
async def test_async_client_create_blob_exists (httpserver : HTTPServer ):
948
- httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'HEAD ' ).respond_with_response (Response (status = 200 ))
946
+ httpserver .expect_ordered_request (PrefixPattern ('/api/blobs/' ), method = 'POST ' ).respond_with_response (Response (status = 200 ))
949
947
950
948
client = AsyncClient (httpserver .url_for ('/' ))
951
949
0 commit comments